Hello,

My task is as follows:
If the parser fails to parse an XML document into the DOM, the document has
to be read as a String with the correct encoding. The document is read from
a byte stream. For that I have to detect the encoding.

I found some pieces of encoding detection in the XMLEntityManager:
auto-detection from the first four bytes, creation of the reader.
But I could not find where the encoding name is read from the xml-header.

Is there any other ready-to-use code that does this job?
Any other suggestions?
  
Kind regards,
Harald


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to