3> { Xml, _Rest } = xmerl_scan:file(ResultIdx).
** exception exit: {bad_character_code,
"<!DOCTYPE BODY SYSTEM
"http://www.xxx.com/yyy.dtd\">\n<BODY>\n<RENDERING>\naaa</RENDERING>\n</BODY>\n",
'windows-1252'}
in function xmerl_ucs:to_unicode/2
in call from xmerl_scan:scan_document/2
in call from xmerl_scan:file/2
The XML document starts with PI: <?xml version="1.0"
encoding="windows-1252"?>
It works, after changing it to
<?xml version="1.0" encoding="utf-8"?>
The problem is that this XML document generated by 3rd party SW, so I would
like to fix xmerl code, or use some xmerl option.
I using R12B on Windows.
TIA
Zvi
--
View this message in context: http://www.nabble.com/Exception-in-xmerl%2C-when-pasing-XML-with-non-UTF8-character-set-tp14588326p14588326.html
Sent from the Erlang Questions mailing list archive at Nabble.com.