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

Re: url encoding gets wrong with åöä?

Subject: Re: url encoding gets wrong with åöä?
From: "Jonas Lundberg" <my.name.is.hans@xxxxxxxxx>
Date: Mon, 5 Jun 2006 23:03:21 +0200
url encoding problem
Niklas,
as you can see on this page http://www.ascii.cl/htmlcodes.htm "E4"
corresponds to "d" which is works since it is translated to
"avhdmtning". This means that the encoding is wrong in the request.
You could try an encode-uri function in your xslt style sheet.
Encoding problems are wicked, so it might be more difficult to solve.

Regards
Hans

On 6/5/06, Niklas Holmberg <Niklas.Holmberg@xxxxxxxxx> wrote:

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%A4mtning&selecte
d_header_code=R1001257
This does work:

http://gulasidorna.eniro.se/query?what=yp&search_word=Avh%E4mtning&selected_h
eader_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@xxxxxxxxxxxx]
Sent: den 5 juni 2006 16:17
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  url encoding gets wrong with evd?

> The url commes out as "Avh%C3%A4mtning" and the link text as
> "Avh&auml;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/





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.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.