Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: U-DOS to DOS file conversionby ikegami (Patriarch) |
on Jun 16, 2010 at 23:11 UTC ( [id://845121]=note: print w/replies, xml ) | Need Help?? |
Then it's probably UCS-2le or UTF-16le. (The latter is a superset of the former.)
Most people would consider "DOS format" to mean encoded using their machine's "ANSI" encoding and using CRLF for line endings. In the Western world, the "ANSI" encoding is usually Windows-1252 aka cp1252.
Update: The :crlf layer ends up in the incorrect order. That's not a problem with ASCII-derived encodings, but it is with UTF-16le. You actually need to use a workaround like
In Section
Seekers of Perl Wisdom
|
|