Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Encoding and decoding a Unicode

by suno (Acolyte)
on Jul 10, 2015 at 10:42 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-06-13 14:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.