I have a problem with lwp. When I retrive pages i use decode_content to access html. Which encoding has the result of decoed_content ?
my $ua = LWP::UserAgent; my $resp = $ua->get("http://some.url"); die $resp->status_line, $/ unless $resp->is_success; Im using HTML::TreeBuilder to build html tree and retrive needed content. my $htree = new HTML::TreeBuilder; $htree->parse($resp->decoded_content); $htree->eof; at this point for me is not clear encoding of "$resp->decoded_content". then i need to convert extracted text data to "cp1251" encoding. How can I do that ? Thanks -- If you think of MS-DOS as mono, and Windows as stereo, then Linux is Dolby Digital and all the music is free... -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/