Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
XML::Simple throws decode error in encode.pmby Anonymous Monk |
on Aug 03, 2010 at 22:40 UTC ( [id://852764]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: I am using XML::Simple to parse an XML string. The string is loaded from a signed UTF-8 file. When I call the XMLin($string) method to parse the document, I get this error: Wide character in print at C:\Texts\Programs/SIFX.pm line 42. Then Data::Dumper doesn't dump anything. It seems that it all just stops with that error. When I print the string, it looks just fine. The only non-ansi character I can find in it is this dash: —, which appears several times. One of the containing lines is: <LEX st="Kasulatan" id="tl" chrBrk="—" tSt="s11"/> It really bugs me because this snippet works fine: but it doesn't work when it is loaded from a file.
Back to
Seekers of Perl Wisdom
|
|