in reply to XML::Simple Non-UTF-8 characters won't read

In addition to ikegami's excellent description of what is wrong with your XML input, another option to consider is to pass all input through Encoding::FixLatin before passing it to XML::Simple. This will ensure that the characters are UTF-8 encoded by the time they get to the parser. This assumes that your input is ASCII/Latin-1/CP1252/UTF-8 or some mixture thereof.

  • Comment on Re: XML::Simple Non-UTF-8 characters won't read

Replies are listed 'Best First'.
Re^2: XML::Simple Non-UTF-8 characters won't read
by danjkool35 (Initiate) on Feb 02, 2011 at 12:59 UTC
    Thanks for a great suggestion. This should solve my problem.