in reply to Re^5: XML::Simple parser error : Input is not proper UTF-8, indicate encoding
in thread XML::Simple parser error : Input is not proper UTF-8, indicate encoding
When the character is substituted with the character reference , it also bombs out:$ perl pm986755.pl Entity: line 9: parser error : PCDATA invalid Char value 14 <CALLERID> jW·h®õ¿Š7a·Ø +;TÙ< + ^
Upgrading the version in the PI to 1.1 does not help. XML-Simple respectively its underlying modules XML::Parser/expat and XML::LibXML/libxml2 cannot deal with XML 1.1!$ perl pm986755.pl Entity: line 9: parser error : xmlParseCharRef: invalid xmlChar value +14 <CALLERID> jW·h®õ¿Š7a·ØT&# +xD9; + ^
Your advice was flawed from the beginning, it simply cannot work in the general case. Whatever puts control characters there is apt to also put a chr(0) character. No matter whether plain character or character reference, it's illegal in all versions of XML.
|
|---|