good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: UTF-16 on WinXP written by Perl shows whitespaces.by almut (Canon) |
on Nov 07, 2007 at 13:40 UTC ( [id://649481]=note: print w/replies, xml ) | Need Help?? |
For text files, I'd suggest using :raw:encoding(UTF-16LE):crlf:utf8 instead, in which case Perl will do proper linefeed translations (on Windows), just like it would without the :encoding(UTF-16LE). Otherwise, be prepared to handle trailing carriage returns (\r) yourself — chomp (with the default $/ setting), for example, will not remove them...
In Section
Seekers of Perl Wisdom
|
|