This process is explained in the HTML specification: see
 
http://www.w3.org/TR/html4/appendix/notes.html#non-ascii-chars
 
The XSLT specification references this, and mandates UTF-8 based URL encoding.
 
Is your browser failing to handle the encoded URL correctly?
 
If so, it might be that the best way to fix the problem is to encode the HTML document in UTF-8. As the above reference explains, some browsers assume (incorrectly) that the encoding of characters in escaped URLs is the same as the encoding of the document itself.
 
Saxon provides an option on xsl:output to suppress the encoding of URIs, it might also be worth trying this.
 
(Incidentally, the href value does not contain "an entity": it contains a non-ASCII character. It's irrelevant whether the non-ASCII character was originally written as an entity reference, as a character reference, or as a native character.)
 
Michael Kay
-----Original Message-----
From: saxon-help-admin@lists.sourceforge.net [mailto:saxon-help-admin@lists.sourceforge.net] On Behalf Of Gabriel McGoldrick
Sent: 10 March 2003 18:07
To: saxon-help@lists.sourceforge.net
Subject: [saxon] entities and url encoding

I am outputting a href  that contains an entity (Å  &#197) - however, this gets URL-encoded to %C3%85 rather than %C5  as I would expect - why is this, and how can I achieve what I want?
 
Rgds,
Gabriel