[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Encoding while parsing

Subject: RE: Encoding while parsing
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
Date: Mon, 20 Oct 2003 17:43:47 +0200
jdom encoding
> -----Original Message-----
> From Pramodh Peddi
>
> Hi,
> This not specific to just xsl. It is concerned to xml Processors.
>

I hate to say it, but in that case you're asking your question on the wrong
list...

However,

> 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.

http://www.jdom.org/docs/apidocs/org/jdom/output/XMLOutputter.html


Greetz,

Andreas


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.