in reply to WWW::Mechanize & encoding
use WWW::Scripter qw(); use HTML::Entities qw(decode_entities); my $w = WWW::Scripter->new; $w->get('file:///tmp/nhg.euc-jp.html'); decode_entities $w->content; # returns a Perl string, use Encode::enco +de to prepare it for output.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: WWW::Mechanize & encoding
by Anonymous Monk on Jun 28, 2011 at 13:42 UTC | |
by Anonymous Monk on Jun 29, 2011 at 09:04 UTC |