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 | |
by ikegami (Patriarch) on Mar 23, 2009 at 05:01 UTC | |
by way (Sexton) on Mar 23, 2009 at 20:04 UTC | |
by ikegami (Patriarch) on Mar 23, 2009 at 20:56 UTC | |
by way (Sexton) on Mar 24, 2009 at 20:56 UTC |