Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: How to read a Unicode file?by Aragorn (Curate) |
on Jan 23, 2004 at 23:20 UTC ( [id://323731]=note: print w/replies, xml ) | Need Help?? |
perluniintro is a gentler introduction to Perl and Unicode. I'm by no means an expert, but I think that, depending on the encoding, you can use open(my $fh, "<:utf8", "file") or something like open(my $fh, "<:encoding(ucs2), "file").
Arjen
In Section
Seekers of Perl Wisdom
|
|