Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 rifling through the Monastery: (11)
As of 2014-11-28 09:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (194 votes), past polls