LWP ends up with unreadable characters
| Newsgroups | gmane.comp.lang.perl.modules.lwp |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
i'm trying to use LWP on:
http://education.yahoo.com/reference/dict_en_es/spanish/a_1;_ylt=
AoFfUtrOQo3d1vl10ohvPPb2s8sF
when i do :
$ua = LWP::UserAgent->new;
$res1 = $ua->get($url,%header);
my $page = $res1->content;
'$page' ends up with unreadable characters. the code works fine for
most sites. also, if i fetch the page with 'lynx' i get readable stuff,
and a browser's 'view source' function on the page gets a normal
result.
ideas?
tom arnall
north spit, ca