Subject: | http://www.google.com/ig/api?weather= may return invalid UTF-8 on occasion |
You could try e.g.
http://www.google.com/ig/api?weather=Patras%2C%20Greece to see that
XML::Simple rightfully chokes.
My fix was to ``use Encode();'' and ``Encode::decode_utf8($xml,
Encode::FB_DEFAULT);'' before it goes through XML::Simple.
(Of course feel free to add eval()s as necessary to keep it working
under pre 5.8.x perls).