|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re: how to output file in Unicodeby moritz (Cardinal) |
| on Aug 23, 2012 at 20:51 UTC ( #989379=note: print w/ replies, xml ) | Need Help?? |
|
Unicode is not a file format. Unicode is rather abstract concept: a collection of characters, and a mapping from the characters to numbers. But to write a file, there is one step missing: a character encoding, that transforms those numbers into bytes. Popular ones are UTF-8, and UTF-16LE, UTF-16BE and UTF-32. Some programs on windows write "Unicode" when they mean one of the UTF-16 encodings, but it's still wrong. So, what encoding do you want? Also please read Encodings and Unicode.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||