in reply to
wrong encoding using WWW::Mechanize
Maybe also
binmode OUTFILE...
Comment on
Re: wrong encoding using WWW::Mechanize
Download
Code
Replies are listed 'Best First'.
Re^2: wrong encoding using WWW::Mechanize
by
panchuloguay
(Initiate)
on Feb 01, 2009 at 20:51 UTC
Hey Guys!!!
Thanks a lot for all your help!!!
It was indeed an encoding problem!!
What really solved the issue was openning in UTF-8 mode:
my $file = "./cgi-bin/output.txt"; open RAW, '<:encoding(utf-16)', $file or die "Couldn’t open $file: $!\n";
This converts automatically the utf-16 file to utf-8.
Thanks everybody for the tips!!
[reply]
In Section
Seekers of Perl Wisdom