Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Pragma to handle unicode characters

by ikegami (Patriarch)
on Dec 22, 2008 at 01:32 UTC ( [id://731950]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    binmode STDIN,  ":utf8";
    binmode STDOUT, ":utf8";
    
  2. or download this
    binmode STDIN,  ":encoding(UTF-8)";
    binmode STDOUT, ":encoding(UTF-8)";
    binmode STDERR, ":encoding(UTF-8)";
    
  3. or download this
    use open ':std', ':encoding(UTF-8)';
    
  4. or download this
    use open ':std', ':locale';
    
  5. or download this
    open(IN, "<utf8", "sample.txt");
    
  6. or download this
    open(IN, "<:encoding(UTF-8)", "sample.txt");
    
  7. or download this
    use open IO => ':encoding(UTF-8)';
    
  8. or download this
    use open IO => ':locale';
    
  9. or download this
    use utf8;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-24 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found