XML Simple Charset Q?by dingus (Friar)
|on Nov 25, 2002 at 17:33 UTC||Need Help??|
dingus has asked for the
wisdom of the Perl Monks concerning the following question:
I have some very simple XML that I want to convert into a hash (sample below):
Most of the time XML::Simple converts this just fine. Unfortunately if one of the author names contains an umlaut (ö or ü or ä) then I get this error from XML::Parser (presumably called by XML::Simple):
"Error: not well-formed at line 2, column 18, byte 49 at c:/Perl/site/lib/XML/Parser.pm line 168"
where the character specified is the umlauted character.
I'm not finding an obvious way to tell XML::Simple that umlauts are OK (i.e. that I'm using ISO Latin-1). I would prefer not to have to do s/ö/ö/ lines before I use XML::Simple although that clearly is a possibility.
Enter any 47-digit prime number to continue.