[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: "Niklas Holmberg" <Niklas.Holmberg@xxxxxxxxx>
Date: Thu, 8 Jun 2006 13:48:28 +0200
url encoding browser
It's not the browser that is the problem. It's the xslt output that doesn't
get right. I get the characters ?? instead of edv. "Affdrsluncher" commes out
as "Aff??rsluncher".

/N

-----Original Message-----
From: Joe Fawcett [mailto:joefawcett@xxxxxxxxxxx]
Sent: den 8 juni 2006 13:44
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  url encoding gets wrong with evd?

Niklas

Do you mean the browser shows it incorrectly?
What browser? If IE then try View|Encoding and remove auto-select and try on
UTF-8.
My browser often has problems with UTF-8, if you're able make sure the server
sends the correct contentType header "text/html; charset=utf-8".

--

Joe


>From: "Niklas Holmberg" <Niklas.Holmberg@xxxxxxxxx>
>Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
>Subject: RE:  url encoding gets wrong with evd?
>Date: Thu, 8 Jun 2006 12:52:39 +0200
>
>
>Ok, so the my question is why all my EDVedv is being put out as "?".
>Both xml and xsl are utf-8 and my output encoding is also utf-8.
>
>/N
>
>-----Original Message-----
>From: Joe Fawcett [mailto:joefawcett@xxxxxxxxxxx]
>Sent: den 8 juni 2006 12:44
>To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>Subject: RE:  url encoding gets wrong with evd?
>
>Niklas
>
>If your output is XHTML then that's an XML output not an HTML one.
>
>--
>
>Joe
>
>
> >From: "Niklas Holmberg" <Niklas.Holmberg@xxxxxxxxx>
> >Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> >To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> >Subject: RE:  url encoding gets wrong with evd?
> >Date: Thu, 8 Jun 2006 12:32:10 +0200
> >
> >
> >Thank you =) Worked great.
> >
> >Thought i was done with my xsl by now but discovered another problem.
> >I use output method="html" (since my output is to a xhtml file).
> >&amp; is then put out as & in the html-file. I want to keep it as
> >&amp; in the output too. If i use output xml instead &amp; is kept as
> >&amp; like i want to but then all my EDVedv is being put out as "?".
> >
> >html output:
> ><li><a
> >href="http://gulasidorna.eniro.se/query?what=yp&search_word=Aff%E4rsl
> >un
> >cher">Aff&auml;rsluncher</a></li>
> >
> >xml output:
> ><li><a
> >href="http://gulasidorna.eniro.se/query?what=yp&amp;search_word=Aff%E
> >4r
> >sluncher">Aff??rsluncher</a></li>
> >
> >
> >So my questions:
> >1. What is the point of using output html, what is the difference
> >from using xml (other than that &amp; is put out as &).
> >2. Should i stick to output html and try to solve if from there os
> >swich to xml and the try to solve why edv doesn't get put out right?
> >
> >Thanks again!
> >/Niklas
> >
> >
> >Here's my code:
> >
> ><?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0"
> >xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> >xmlns:javaUrlEncoder="java.net.URLEncoder"
> >exclude-result-prefixes="javaUrlEncoder">
> ><xsl:output method="html" encoding="UTF-8" indent="yes"/>
> ><xsl:template match="/">
> >	<ul id="tagcloud">
> >	<xsl:for-each select="root/row">
> >	<xsl:sort select="word"/>
> >		<li class="weight1"><a><xsl:attribute
> >name="href">http://gulasidorna.eniro.se/query?what=yp&amp;search_word
> >=<
> >xsl:value-of
> >select="javaUrlEncoder:encode(word,
> >'ISO-8859-1')"/></xsl:attribute><xsl:value-of select="word"/></a></li>
> >	</xsl:for-each>
> >	</ul>
> ></xsl:template>
> ></xsl:stylesheet>
> >
> >
> >
> >-----Original Message-----
> >From: Joe Fawcett [mailto:joefawcett@xxxxxxxxxxx]
> >Sent: den 8 juni 2006 11:29
> >To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> >Subject: RE:  RE : RE:  url encoding gets wrong with evd?
> >
> >Niklas
> >
> ><xsl:stylesheet exclude-result-prefixes="javaUrlEncoder" ....
> >
> >--
> >
> >Joe
> >
> >
> >
> >
> >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.
>
>
>
>
>
>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.





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

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.