Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: PerlIO: crlf layer on Windows interfering with UCS-2 unicode

by ikegami (Pope)
on Jun 03, 2008 at 10:53 UTC ( #689841=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    binmode STDIN, ':raw:encoding(ucs-2le):crlf:utf8' or die;
    dump_layers STDIN;
    
  2. or download this
    unix encoding(UCS-2LE) utf8 crlf utf8
    unix encoding(UCS-2LE) utf8 crlf utf8
    unix crlf encoding(UCS-2LE) utf8
    unix crlf encoding(UCS-2LE) utf8
    
  3. or download this
    binmode $fh, ':raw:pop:encoding(ucs-2le):crlf:utf8';
    #                  ^^^
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://689841]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2014-12-25 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (163 votes), past polls