[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: Peter Hollingsworth <peter@xxxxxxxxxxxxxxxxx>
Date: Tue, 13 Jan 2004 22:05:22 -0800
peter hollingsworth
OK, sorry to be so dense, but your reference says the following:

We recommend that user agents adopt the following convention
for handling non-ASCII characters in such cases:
1. Represent each character in UTF-8 (see [RFC2279]) as one or more bytes.
2. Escape these bytes with the URI escaping mechanism (i.e., by converting
each byte to %HH, where HH is the hexadecimal notation of the byte value).


So following the instructions, I take the character for à, which according to everything I can find is 224. I convert this to hex, E0. Voila, the escaped value is %E0. Where do you get %C3%A0 out of this? Obviously the xsl parser agrees with you, but I don't see where the value is coming from.

Thanks.

--Peter


At 10:09 PM 1/13/2004 +0100, you wrote:
Peter Hollingsworth wrote:

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.

It's exactly the right thing. See:


<http://www.w3.org/TR/html401/appendix/notes.html#h-B.2.1>

Both the XSL and the XML file have encoding="UTF-8" (unicode, I believe).

That's irrelevant here.


Any suggestions? Thanks.

Fix the server, if you can. The URI is just fine.


Julian

--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

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.