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

RE: Smart Quote Encoding

Subject: RE: Smart Quote Encoding
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 12 Sep 2007 18:42:03 +0100
RE:  Smart Quote Encoding
> I am using Saxon 6.3 

That's a very old release, though that shouldn't matter as it's failing
before it even gets to Saxon.

> and trying to transform some XML 

Actually your problem is that the thing you are trying to transform isn't
XML - the parser is rejecting it.

> The messages sometimes contain special/nonstandard 
> characters, such as smart quotes.  

How are the messages generated? Whatever software generates them should know
what character encoding it is using, and should set this character encoding
in the XML declaration.
> 
> I receive the following error when I try to apply transformations:
> 
>   Fatal error reported by XML parser: illegal XML character U+18
>     URL:    file:/C:/hello/goodbye.log
>     Line:   8
>     Column: 116

That looks like a pretty weird character to me - it's not what I'd expect
when you use typographical quotes in a Windows encoding.

> 
> How do I handle any arbitrary text yet still be able to apply 
> transformations?

All you have to do - it's very simple in principle! - is to ensure that the
encoding of the characters in the file is what the XML declaration claims it
is.

Michael Kay
http://www.saxonica.com/

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.