Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: XML::Simple Non-UTF-8 characters won't readby grantm (Parson) |
on Feb 02, 2011 at 00:04 UTC ( [id://885629]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|