in reply to Re^2: error returned with XML::Simple or Data::Dumper
in thread error returned with XML::Simple or Data::Dumper

Your $_data contains data in a character encoding that XML::SAX::PurePerl knows nothing about. Where are you getting $_data from? Is it UTF-8? ASCII? Some other charset? Is the charset being mangled about along the line? I couldn't see how to specifically tell XMLin which charset to use.

-derby
  • Comment on Re^3: error returned with XML::Simple or Data::Dumper

Replies are listed 'Best First'.
Re^4: error returned with XML::Simple or Data::Dumper
by Anonymous Monk on Jul 17, 2010 at 22:49 UTC
    UTF-8

    Richard
      some xml parsing modules are more strict than others with regards to well formed and valid xml file etc. in your case i think you need to specify the encoding to be sure it's parsed
      <?xml version="1.0" encoding="ISO-8859-1" ?>
      or whatever encoding you desire.
      the hardest line to type correctly is: stty erase ^H