in reply to XML converts to UTF-8 and causes problems for non-English language speakers

I was having similar problems with processing an XML document containing non-utf8 chars (£ ¥ €) throwing errors whilst parsing with XML::Simple::XMLin only yesterday.

Thanks to one of the kind monks here (mirod), I added 'encoding="ISO-8859-1"' to the ?xml line at the top of my xml files as follows:

<?xml version="1.0" encoding="ISO-8859-1"?>

And this made the parsing errors "go away" - I have not progressed this far enough to know if this is a complete solution yet (I'm new to Perl and XML) but if you haven't already tried this, it would be worth a go.

  • Comment on Re: XML converts to UTF-8 and causes problems for non-English language speakers
  • Download Code

Replies are listed 'Best First'.
Re^2: XML converts to UTF-8 and causes problems for non-English language speakers
by Anonymous Monk on Sep 22, 2018 at 05:59 UTC
    Thank you!1 You saved my day!