Hi all,
I met a problem of string encoding in perl.
what i want to do is to read a string from Windows command line and then write it to a file, which is UTF8 encoded.
The string I will have to read from the command line could be different languages, for example English, Chinese or German.
as I know the commadline string is encoded according to my host local, for example gb2312, i can decode the ARGV[0] with gb2312, and then encode it with UTF8, before i write it to the file.
this works fine for english and chinese, but not for languages like German.
how can i do the same thing with those languages? without user input a encoding of the language used.
Thanks and Regards!
Lee