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

how to use Encode qw(all)

by swilting (Beadle)
on Apr 05, 2010 at 14:36 UTC ( #832819=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    use Encode qw(all);
    ...
    # Something is seriously wrong if we get to here
     return encode($ENC_ASCII, $text, undef);
    
  2. or download this
    # IO layer: $handle now decodes all strings upon reading
    open my $handle, '<:encoding(UTF-8)', $file;
    
  3. or download this
    binmode $handle, ':encoding(UTF-8)';

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2015-05-28 17:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (562 votes), past polls