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

RE: encoding woes: ISO-8859-1 vs. UTF-8

Subject: RE: encoding woes: ISO-8859-1 vs. UTF-8
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Wed, 24 Jul 2002 09:05:31 +0100
RE:  encoding woes: ISO-8859-1 vs. UTF-8
> > ISO-8859-1 can only encode the characters in the
> > range 0-255.
> 
> That's what I thought as well.  How did saxon
> converted those two control chars into the proper
> encoding for &#8220; and &#8221; even though the input
> XML was marked as encoding in ISO-8859-1?  I was fully 
> expecting the import would fail, but somehow it was successful.

I have no idea. This isn't done by Saxon, it's done by the XML parser.
If you were using the default parser (AElfred), I think that it actually
accepts bytes x80-x9F with encoding="iso-8859-1", converting them into
characters x80-x9F.

> 
> Good point.  For export output, I changed encoding to
> UTF-8, that seems to have resolved the problem, now
> export is successful.  Open the exported CSV in Hex
> editor, those two chars are shown as Hex 93/94,
> respectively.
> 
Now I really am puzzled.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


 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.