My browser thinks that page is "UTF-16 (Little endian)" encoded. I did this:
use LWP::Simple; use Encode; my $p = get( 'http://securities.stanford.edu/1008/UTIIQ96/' ); my $d = decode( 'UTF-16LE', substr( $p, 2 ), 1 );
After that, $d comes out without all the null characters. I'm using a substr of $p so as to skip over the Byte-order mark.
In reply to Re: LWP problem
by kyle
in thread LWP problem
by coltman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |