My guess (and it's only a guess) is that the query string is being sent
unchanged to the server, and the server software is decoding it incorrectly.
I don't know what you can do about that, unless you are in control of the
server...
One solution available with some XSLT processors (including Saxon) is to
suppress the URL encoding entirely. This often works, though it isn't
guaranteed.
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: Niklas Holmberg [mailto:Niklas(_dot_)Holmberg(_at_)eniro(_dot_)com]
Sent: 05 June 2006 15:24
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] url encoding gets wrong with åöä?
Hmm i guess you are right, but the link does work since think
the target page of the link expects ISO-8859-1?
This doesn't work:
http://gulasidorna.eniro.se/query?what=yp&search_word=Avh%C3%A
4mtning&selected_header_code=R1001257
This does work:
http://gulasidorna.eniro.se/query?what=yp&search_word=Avh%E4mt
ning&selected_header_code=R1001257
I changed my output encoding to ISO-8859-1 but that didn't
change anything. Any sugestions?
Thanks!
/Niklas
-----Original Message-----
From: Michael Kay [mailto:mike(_at_)saxonica(_dot_)com] Sent: den 5 juni
2006 16:17
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] url encoding gets wrong with åöä?
The url commes out as "Avh%C3%A4mtning" and the link text
as > "Avhämtning".
the encoding in the url is wrong. it should be Avh%E4mtning
No, the encoding in the URL is correct. The correct procedure
for escaping non-ASCII characters in a URL is to first encode
the character in UTF-8, then represent each octet of the
UTF-8 sequence in hexadecimal as %HH.
The important question is, does the link actually work? If it
doesn't work, which browser are you using?
Michael Kay
http://www.saxonica.com/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
Confidentiality Notice: This e-mail transmission may contain
confidential or legally privileged information that is
intended only for the individual or entity named in the
e-mail address. If you are not the intended recipient, you
are hereby notified that any disclosure, copying,
distribution, or reliance upon the contents of this e-mail is
strictly prohibited and may be unlawful. If you have received
this e-mail in error, please notify the sender immediately by
return e-mail and delete all copies of this message.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--