in reply to Chicanery Needed to Handle Unicode Text on Microsoft Windows
Can someone explain how this sequence of PerlIO layers works?
The default is
:perlio:crlf
If you add encoding layer it becomes
:perlio:crlf:encoding(UTF-16le)
The order is backwards. CRLF processing is done before decoding on read and after encoding on write. Buggy! the following is desired:
:perlio:encoding(UTF-16le):crlf
:raw cleans the slate, allowing you to get the desired order.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Chicanery Needed to Handle Unicode Text on Microsoft Windows
by Jim (Curate) on Oct 30, 2010 at 19:07 UTC | |
by Anonymous Monk on Oct 30, 2010 at 22:29 UTC | |
by Jim (Curate) on Oct 31, 2010 at 18:10 UTC | |
by Anonymous Monk on Oct 31, 2010 at 18:12 UTC | |
by ikegami (Patriarch) on Oct 31, 2010 at 00:17 UTC | |
Re^2: Chicanery Needed to Handle Unicode Text on Microsoft Windows
by Anonymous Monk on Oct 31, 2010 at 17:16 UTC | |
by Anonymous Monk on Oct 31, 2010 at 17:58 UTC | |
by Anonymous Monk on Oct 31, 2010 at 18:09 UTC |
In Section
Seekers of Perl Wisdom