Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: LWP problem

by betterworld (Curate)
on Sep 08, 2008 at 15:40 UTC ( [id://709794]=note: print w/replies, xml ) Need Help??


in reply to LWP problem

It seems like that document is in UTF-16 encoding. Try this:

use LWP::Simple; use Encode; my $x = get("http://securities.stanford.edu/1008/UTIIQ96/"); print length $x, "\n"; # prints 59810 $x = decode("utf-16", $x); print length $x, "\n"; # prints 29904 print $x; # prints the document

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://709794]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (1)
As of 2024-04-18 23:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found