in reply to Re^2: WWW::Mechanize always use utf8
in thread WWW::Mechanize always use utf8

I can replicate the problem with WWW::Mechanize 1.54, but not with WWW::Mechanize 1.34. (LWP 5.825 in both cases.)

My goal was to rule out a badly encoded file. I used the following equivalent cgi script for testing:

#!/usr/bin/perl -wT use strict; use CGI qw(param); binmode STDOUT, ':encoding(iso-8859-1)'; print "Content-type: text/html; charset=iso-8859-1\n\n"; my $q = param('status') || 'nothing'; print <<HTML; <html> <body> <h1>You has selected $q</h1> <form name="form" action="http://localhost/"> <select name="status"> <option value="ACCI\x{D3}N">ACCI\x{D3}N</option> <option value="PING\x{DC}INO">PING\x{DC}INO</option> </select> <input type="submit" name="send" value="send"> </form> </body> </html> HTML

The relevant difference between your systems is not the OS, it's the version of the module.

Replies are listed 'Best First'.
Re^4: WWW::Mechanize always use utf8
by Anonymous Monk on Mar 23, 2009 at 04:42 UTC

    Yes ikegami, downgrading the version of the module solve the problem exactly as you said, do you think that it's a bug, to report?

    Thank you a lot

      I'm pretty sure it's a bug (but I'm not sure). It's definitely inconsistent with the behaviour of browsers.

        Ok, i going to report now