Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

VSarkiss's scratchpad

by VSarkiss (Monsignor)
on Jun 01, 2004 at 23:41 UTC ( [id://358832]=scratchpad: print w/replies, xml ) Need Help??

This little program works fine to convert a UTF-16 file to UTF-8:

#! perl use encoding "utf16", STDOUT => "utf8"; while (<>) { print }
But when I try to do what I think is the same thing from the command line:
perl -Mencoding=utf16,STDOUT,utf8 -p -e 1 < in > out
The resulting file is a whacked semi-utf-16 format.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-10-06 10:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (43 votes). Check out past polls.

    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.