E
Erik Wahlstrom
I have an XML document that includeds a UTF-8 BOM (0xEF 0xBB 0xBF).
The document is properly encoded as UTF-8. However the XMLDecl
encoding pseudo attribute indicates 'ISO-8859-1'. So how SHOULD the
XML processor handle this? Is it a fatal error? Clearly it cannot be
processed as ISO-8859-1 because the content is scrambled. It appears
the Xerces is parsing it according to ISo-8859-1 even though the BOM
is there. Hmm. Any sugestions? How should one handle this case?
Erik
The document is properly encoded as UTF-8. However the XMLDecl
encoding pseudo attribute indicates 'ISO-8859-1'. So how SHOULD the
XML processor handle this? Is it a fatal error? Clearly it cannot be
processed as ISO-8859-1 because the content is scrambled. It appears
the Xerces is parsing it according to ISo-8859-1 even though the BOM
is there. Hmm. Any sugestions? How should one handle this case?
Erik