in reply to Re: wrong encoding using WWW::Mechanize
in thread wrong encoding using WWW::Mechanize

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!!
  • Comment on Re^2: wrong encoding using WWW::Mechanize