Re: encoding(UTF16-LE) on Windows
[email protected] ('Michael Ludwig') Wed, 19 Jan 2011 20:45:27 +0100
| Newsgroups | perl.unicode |
|---|---|
| Message-ID | <20110119194527.GJ3868@wladimir> |
Jan Dubois schrieb am 19.01.2011 um 11:08 (-0800): > You need to stack the I/O layers in the right order. The :encoding() > layer needs to come last (be at the bottom of the stack), *after* the > :crlf layer adds the additional carriage returns. The way to pop the > default :crlf layer is to start out with the :raw pseudo-layer: > > open(my $fh, ">:raw:encoding(UTF-16LE):crlf", $filename) or die $!; Cool, that works. thanks! :-) -- Michael Ludwig