xsl-list
[Top] [All Lists]

RE: Encoding while parsing

2003-10-20 09:06:07
-----Original Message-----
From Andreas L. Delmelle

-----Original Message-----
From Pramodh Peddi

I am using JDOM API for xml processing. The xml string had
"windows-1252"
encoding and it supports special characters like "registered mark",
"copyright", etc. The document is built fine, but the document
has UTF-8,
because the parser (xerces/crimsons) is changing the encoding from
Windows-1252 to UTF-8.

Check the API docs for JDOM, namely the XMLOutputter Object, and you will
notice that it provides the setEncoding() method, which I would
expect to be
used for explicitly setting the output encoding of the XML Document.


Sorry, I seem to have read this wrong. Your problem is obviously with the
xerces/crimson parsers. (my mistake)

So, as a hint: try browsing the xerces or crimson list archives for strings
like 'output encoding'.

It would surprise me if you were actually the first to have a
problem/question like this...

Again, my excuses for misreading your question (surely didn't want to waste
your time).

Greetz,

Andreas


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>