You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Adrian Brogan <ad...@harbinger.com> on 2000/05/09 20:28:54 UTC

Disabling encoding

Hello

A Question.

We are embedding the Non Validating SAX Parser into one of our products. Due
to the way we use it, an XML input stream will be encoded into UNICODE by a
java Reader class. The UNICODE is then fed into the SAX parser. This will
cause a problem if an encoding other than UNICODE (or possibly UTF-8) is
stated in the prolog. 

For this reason, I need the SAX Parser to assume the encoding will always be
UNICODE and ignore the encoding in the prolog. Can this be done without
diving into the bowels of the SAX Parser code or if not, does anybody know
where in the code a simple change could be made to solve this problem ?

Note: I am using the 2.0.15 IBM XML4J parser at the moment.

Thanks

Adrian