in reply to files saved in unicode are not being read correctly
If you want to use new feature of perl-5.8.0 and to read directly unicode data, you should tell to perl
that your file is Unicode:
I got that code samples from perluniintro.pod, which is beautiful reading to start.open(my $fh,'<:utf8', 'anything'); my $line_of_unicode = <$fh>; open(my $fh,'<:encoding(Big5)', 'anything'); my $line_of_unicode = <$fh>;
And yes, if you're not ready to move to perl-5.8.0 yet, then use Unicode::Map module to solve your task.
Courage, the Cowardly Dog.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: files saved in unicode are not being read correctly
by Anonymous Monk on Jun 30, 2002 at 14:12 UTC | |
by Courage (Parson) on Jun 30, 2002 at 14:20 UTC |
In Section
Seekers of Perl Wisdom