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

Re: How to read the encoding of an XML document

Subject: Re: How to read the encoding of an XML document
From: James Garriss <jpgarriss@xxxxxxxx>
Date: Fri, 26 Oct 2001 15:52:25 -0400
xerces encoding utf 16
At 04:29 PM 10/25/2001 -0400, Thomas B. Passin wrote:

Yes.  At least, any xml processor would be able to handle either utf-8 or
utf-16.  What may be displayed by a browser or word processor, though (if
you transform it into a displayable document), is another question.  utf-8
might be a better choice depending on what is going to consume it.

"Christopher R. Maden" <crism@xxxxxxxxx> wrote:


> All XML parsers are required to read UTF-8 and UTF-16 data.

They are required to read, but what character encoding sets are they required to save to?

I am using Xalan-J 1.0.0 and Xerces-J 1.0.3 (with JRE 1.2), but when I have this in my XSL:

< xsl:output indent="no" method="xml" encoding="UTF-16"/ >

I get the following error:

org.apache.xalan.xslt.XSLProcessorException: Unsupported encoding: UTF-16

Can anyone confirm for me that Xerces does not support UTF-16?

Of course this isn't the most current version of Xerces. Maybe I need to upgrade?

--James


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.