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

RE: Supported encodings

Subject: RE: Supported encodings
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Wed, 23 May 2001 10:21:08 +0100
java supported encodings
> Does anyone know if Saxon supports the encoding "iso-8859-1"?
> I am making
> this call in Java:
>      transformer.setOutputProperty(OutputKeys.ENCODING, "iso-8859-1");
>
> I don't mean to cast any doubt upon Mr. Kay, but has anyone
> found any holes
> where Saxon may have defaulted to UTF-8 unexpectedly.

When you ask for an encoding that the Java VM doesn't support, Saxon will
fall back to UTF-8, with a message to that effect. I think there are
versions of the Microsoft Java VM that don't support iso-8859-1 encoding,
and perhaps there are others.

I've also recently discovered a problem if you specify a java Writer as the
output destination, rather than an OutputStream. In this case, the encoding
of the final output file is determined entirely by the Java VM, but Saxon
still writes the encoding it thinks it is using (e.g. iso-8859-1 in this
case) to the XML declaration.

Mike Kay


 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.