in reply to LWP and UTF-8

I think you have a couple of problems (most of the stuff you're showing is unnecessary for utf-8 web stuff and you can let LWP DWIW and return decoded_content from your response objects). The real problem is that Google will not allow LWP requests for queries so whatever real code you're trying to run is not going to fly like that (and I'd rather not explain how to get around it). They do have a developers' kit/token for making queries which you should check out: Google APIs.

Replies are listed 'Best First'.
Re^2: LWP and UTF-8
by perlmonkdr (Beadle) on Oct 29, 2007 at 23:29 UTC

    Thk, but i don't retrieve infomation from google instead retrieve information from an intranet that use UTF-8, the chance wanted that google uses iso-8859-1, i'm update to yahoo.com

    You right in decode_content in fact, i didn't put it in the previous code becouse i wanted to show to you that the complete page with headers are wrong, but yes, i'm using

    $res->decoded_content((charset => 'utf-8'));

    Unfortunely doesn't works.

    Please note that, LWP have or had a bug with this problem... or at least i see this in many forums on google, but nothing work for me, becouse of that i'm here with the monks :-).

    Many thank.