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

RE: escaping an accented character

Subject: RE: escaping an accented character
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Tue, 13 Jan 2004 23:28:02 -0000
xml accented characters
No, it's not wrong.

Presumably the character is in a URI-valued attribute and you are using
the HTML output method. The correct escaping method for such attributes
is to encode the character as a sequence of UTF-8 octets, and then
escape each octet as two hex digits in the form %HH.

Michael Kay 

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Peter Hollingsworth
> Sent: 13 January 2004 20:52
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  escaping an accented character
> 
> 
> The character à ('a' with a grave accent) appears in a node 
> in my XML. When 
> I use an XSLT to display the node in an href for link in an 
> html page, the 
> character gets escaped as %C3%A0, which is completely wrong 
> (it should be 
> escaped as %E0). Similar problems occur with all accented characters.
> 
> Both the XSL and the XML file have encoding="UTF-8" (unicode, 
> I believe).
> 
> Any suggestions?  Thanks.
> 
> --Peter 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 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.