Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Encoding and decoding a Unicode

by suno (Acolyte)
on Jul 10, 2015 at 10: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 chilling in the Monastery: (2)
As of 2023-06-07 18:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (29 votes). Check out past polls.

    Notices?