Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

VSarkiss's scratchpad

by VSarkiss (Monsignor)
on Jun 01, 2004 at 23:41 UTC ( #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
Chatterbox?
[stevieb]: ohhh, aaaand, I just learned that you can power an Arduino (Uno at least) by connecting any single analog pin to 5v on the Pi GPIO! That's bloody handy

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2017-06-22 23:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (531 votes). Check out past polls.