![]() |
|
XP is just a number | |
PerlMonks |
Problem upgrading XML::Fast from 0.11 to 0.17by mje (Curate) |
on Sep 21, 2017 at 09:33 UTC ( #1199814=perlquestion: print w/replies, xml ) | Need Help?? |
mje has asked for the wisdom of the Perl Monks concerning the following question: I've been using XML::Fast to process XML files for some time and successfully. However, the code was moved to a newer machine and has stopped working in some circumstances. A difference between the machines is XML::Fast version, 0.11 on original machine (working) and 0.17 on new machine (not working). When no other changes are made but to upgrade to 0.17 on the old machine it also stops working. The error I'm getting is:
The XML file comes from a 3rd party and is ISO-8859-1 encoded. The bit it is complaining about is <Value>Br<F8>ndby IF</Value>. A cut down version of the XML which fails is:
The code which is now failing is:
The changes file for XML::Fast is not too helpful. I have discovered adding utf8decode => 1 to the xml2hash makes it work now but I don't really understand why. I am doing anything wrong here? What might have changed in XML::Fast to cause this to happen?
Back to
Seekers of Perl Wisdom
|
|