GaijinPunch has asked for the wisdom of the Perl Monks concerning the following question:
$mech is still holding the content of the previously loaded page in utf8. Even though I pass it an EUC encoded string, it sends it as utf8 (mojibake in this case). Any way around this?## The below is fine and dandy my $page = $mech->content(); $page = Jcode->new( $page )->euc(); ## This is not my %fields; # read fields from form. $fields{"comment"} = "EUC encoded string"; $mech->submit_form( form_number => 1, fields => \%fields );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WWW::Mechanize encoding again...
by Anonymous Monk on Dec 07, 2008 at 09:50 UTC | |
by GaijinPunch (Pilgrim) on Dec 07, 2008 at 10:19 UTC | |
|
Re: WWW::Mechanize encoding again...
by graff (Chancellor) on Dec 08, 2008 at 04:26 UTC |