in reply to Re^2: Problem parsing through downloaded web pages
in thread Problem parsing through downloaded web pages
Did you read the documentation of Encode?
use Encode qw(encode decode);
fixes the problem. The line
my $thearesp = encode("iso-8859-1", decode("UCS-2LE", $theresponse->co +ntent));
uses the functions encode and decode from Encode, which by default aren't exported. You would have figured out surely, had you read the docs.
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Problem parsing through downloaded web pages
by malomar66 (Acolyte) on Jan 06, 2007 at 07:12 UTC |