Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2017-11-24 05:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (344 votes). Check out past polls.

    Notices?