Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Encoding and decoding a Unicode

by suno (Acolyte)
on Jul 10, 2015 at 06:42 UTC ( #1134112=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    my $input=$ARGV[0];
    ...
            next if($currentline=~/^\s+(CLOSE|OPEN)\s+/i);
            print $currentline;        
        }
    
  2. or download this
    open my $fh, '>:encoding(utf-16LE)', $currentline;
    open my $fh, '<:encoding(utf-16LE)', $menufile;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1134112]
Front-paged by GotToBTru
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (1)
As of 2023-03-25 21:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (63 votes). Check out past polls.

    Notices?