The stupid question is the question not asked | |
PerlMonks |
Re: XML::Simple and ISO-8859-1 encoding buggy?by Anonymous Monk |
on May 27, 2021 at 15:19 UTC ( [id://11133142]=note: print w/replies, xml ) | Need Help?? |
Off-the-wall suggestion: what happens if, instead of hand-decoding $xml, you my $xml = $LWP_Data->{feed}->decoded_content; I do not use XML::Simple, but a quick read seems to say that decoding (if any) is done by the back end. Maybe the back end (whatever it is) assumes that if you hand it a string that string has already been decoded? Of course, this only works if the HTTP::Response object contains the encoding. You can check using lwp-request -m HEAD https://some.url/file.xml.
In Section
Seekers of Perl Wisdom
|
|