L
livefreeordie
Hi - I'm using the following construct to parse an HTML page:
use HTTP::Request;
use LWP::UserAgent;
my $req = new HTTP::Request(GET=>$url);
my $ua = new LWP::UserAgent();
my $resp = $ua->request($req);
my $content = $resp->decoded_content();
I'm getting the following error when attempting to access this URL:
Error: Parsing of undecoded UTF-16 at C:/Perl/lib/LWP/Protocol.pm line
116.
URL: http://securities.stanford.edu/1009/RICKEL96/'
When I take a look at the content, each character is separated by a
newline or space.
What is this, and how can I get around it? I've retrieved other pages
successfully.
Jamie
use HTTP::Request;
use LWP::UserAgent;
my $req = new HTTP::Request(GET=>$url);
my $ua = new LWP::UserAgent();
my $resp = $ua->request($req);
my $content = $resp->decoded_content();
I'm getting the following error when attempting to access this URL:
Error: Parsing of undecoded UTF-16 at C:/Perl/lib/LWP/Protocol.pm line
116.
URL: http://securities.stanford.edu/1009/RICKEL96/'
When I take a look at the content, each character is separated by a
newline or space.
What is this, and how can I get around it? I've retrieved other pages
successfully.
Jamie