GaijinPunch has asked for the wisdom of the Perl Monks concerning the following question:
The Japanese strings come back with a Unicode hex representation of each characters, as found here.use WWW::Scripter; use Encode qw(from_to_; use Jcode; my $w = new WWW::Scripter(); $w->get( 'www.page.html' ); my $html1 = $w->content(); from_to( $html1, 'utf8', 'euc-jp' ); # No good my $html2 = Jcode->new( $w->content() )->euc(); # No good but worked w +ith older version of Mechanize.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WWW::Mechanize & encoding
by moritz (Cardinal) on Jun 28, 2011 at 13:03 UTC | |
|
Re: WWW::Mechanize & encoding
by Anonymous Monk on Jun 28, 2011 at 13:44 UTC | |
by GaijinPunch (Pilgrim) on Jun 28, 2011 at 14:02 UTC | |
by Anonymous Monk on Jun 28, 2011 at 14:36 UTC | |
|
Re: WWW::Mechanize & encoding
by Anonymous Monk on Jun 28, 2011 at 13:11 UTC | |
by Anonymous Monk on Jun 28, 2011 at 13:42 UTC | |
by Anonymous Monk on Jun 29, 2011 at 09:04 UTC |