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

RE: encoding and XSL Transformation

Subject: RE: encoding and XSL Transformation
From: Jarno.Elovirta@xxxxxxxxx
Date: Tue, 10 Sep 2002 15:22:23 +0300
xalan transform encoding
Hi,

> I'm having some trouble using the Xalan 2 Java parser for 
> parsing some XML 
> files I have that include non-ASCII characters. In which I 
> have characters 
> like right-tik '  left-tik long dash, etc.  When I use Xalan UTF-8 
> encoding, it will make these characters into garbeled mess, 
> like  Â$(A  for right tick ,etc.

You are viewing the result document using editor/viewer that supports UTF-8, right? I can't stress this enough...

> The SAX2SAX.java example provided with Xalan doesn't do too much help 
> either. In which it seems like it will always output a 
> supposed 'UTF-8' 
> format even though I change the <xsl:output 
> encoding="ISO-8859-1'/> etc.
> 
> Does anyone know how to get the Xalan parser to properly 
> transform these 
> characters to their proper hex value?

Xalan just generates the result tree, it's the serializer that writes the actual outputstream - thus, if the Xalan default serializer doesn't output some characters as character entity references and that doesn't suit you, use your own serializer.

Jarno

 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.