LWP output encoding
Matt Lawrence
matt.lawrence at virgin.net
Wed Nov 23 16:29:05 GMT 2005
Andy Armstrong wrote:
> On 23 Nov 2005, at 15:43, Matt Lawrence wrote:
>
>> That still doesn't explain why the Arabic one succeeded, I get that
>> error on any string containing characters over 255. The source of
>> HTTP::Message shows Encode::decode being used to generate the return
>> value, so arabic should really cause it. *shrug*
>
>
> I'm prepared to leave that as an unsolved mystery. I suppose my main
> concern is 'does $res->decoded_content /always/ correctly return
> unicode' - and the arabic text thing was what raised doubts.
>
I think the only time this is not the case is when the charset is
explicitly set to 'none'. Even iso-8859-1 content should have the utf8
flag turned on, AFAIK.
Matt
More information about the london.pm
mailing list