Hi,
I'd like to submit a small patch that allows xml_parser_create
and xml_parser_create_ns (Expat version) to honor the encoding of
an XML document (including UTF-16). This solves bug #23293. With this
patch xml_parser_create now works identical to the libxml2 version of it
(AFAIK).
Note that this patch may break applications that assumes
ISO-8859-1 (or default encoding) for XML applications, but only
if the application omitted a desired encoding for xml_parser_create.
Applications that wish their XML parser to do decoding
but want a specific target encoding can use option
XML_OPTION_TARGET_ENCODING .
-- Adam
--
Adam Dickmeiss mailto:adam@indexdata.dk http://www.indexdata.dk
Index Data T: +45 33410100 Mob.: 212 212 66
At 11:43 07.05.2003, Adam Dickmeiss wrote:
[...]
Note that this patch may break applications that assumes
ISO-8859-1 (or default encoding) for XML applications, but only
if the application omitted a desired encoding for xml_parser_create.
Then why not make it the default value ?
[...]
marcus