LWP content encode

"stefano tacconi" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
Hi List,

I'm writing a simple script to download some web pages on the net.
Using LWP it's works fine, but how can I get html page with strange
characher?

For example LWP doesn't get page with "on-demand†" string
(on-demand%C3%A2%C2%80%C2%9D).

I tried in vain with Encode, HTTP::Response::Encoding.

if ($res->is_success){
 my $html_content = $res->content;
 #my $html_content = $res->decoded_content;
 #my $html_content = encode( 'utf8', $res->decoded_content );
 my $html_content = uri_escape_utf8($res->content);
...
...

LWP returns half pages, untile it finds a strange character.

Any suggestions?

S.T.

p.s. I read "jerakeen.org/files/2005/perl-utf8.slides.pdf" documentation but
I've some problem again... :)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.