Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 scrutinizing the Monastery: (1)
As of 2016-07-31 06:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (269 votes). Check out past polls.