perlmonkdr has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks, i develop an aplication that use LWP to retrive some info, the page that query LWP is coded in UTF-8.
use LWP::UserAgent; use HTML::Entities; use HTTP::Cookies; use open ':utf8'; use utf8; use locale; use POSIX 'locale_h'; setlocale(LC_ALL, 'en_US.UTF-8'); my $ua = LWP::UserAgent->new; $ua->default_header( 'Accept-Language' => 'en-US', 'Accept-Charset' => 'utf-8', 'Accept' => 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, +image/png, */*' ); #$ua->parse_head(0); my $req = HTTP::Request->new(GET => 'http://www.yahoo.com'); print $ua->request($req)->as_string;
I set and change everything that encounter in google but nothing works, including some changes in LWP::Protocol...
What can i do? before cry...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP and UTF-8
by moritz (Cardinal) on Oct 29, 2007 at 21:37 UTC | |
by perlmonkdr (Beadle) on Oct 30, 2007 at 05:39 UTC | |
|
Re: LWP and UTF-8
by Your Mother (Archbishop) on Oct 29, 2007 at 22:54 UTC | |
by perlmonkdr (Beadle) on Oct 29, 2007 at 23:29 UTC | |
|
Re: LWP and UTF-8
by Gangabass (Vicar) on Oct 30, 2007 at 09:23 UTC | |
by perlmonkdr (Beadle) on Oct 30, 2007 at 13:41 UTC | |
by Gangabass (Vicar) on Oct 31, 2007 at 03:21 UTC | |
by perlmonkdr (Beadle) on Nov 01, 2007 at 15:35 UTC |