Nick Ing-Simmons (nick(_dot_)ing-simmons(_at_)elixent(_dot_)com) writes:
For a UCS-2 file things are not very automatic.
This scheme should work:
Turn off the low level CRLF handling, then add the widening layer,
then add a crlf converter and finally tell perl the stack can handle UTF8:
open (F, '>:raw:encoding(ucs-2le):crlf:utf8', 'as-ucs2.txt');
Thanks. Certainly does not goes along with the principle of least surprise.
Confirms my impression that there is still some work left to do before
Perl has everything right with Unicode.
--
Erland Sommarskog, Stockholm, sommar(_at_)algonet(_dot_)se