Subject: RE: [xsl] url encoding gets wrong with åöä? From: "Nathan Young -X \(natyoung - Artizen at Cisco\)" <natyoung@xxxxxxxxx> Date: Wed, 7 Jun 2006 11:03:38 -0700 |
I know the thread went in a different direction but you can use the ultraedit text editor for better character set support. ----->Nathan .:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:. Nathan Young CDC Site Design & Development->Interface Development Team A: ncy1717 E: natyoung@xxxxxxxxx > -----Original Message----- > From: Niklas Holmberg [mailto:Niklas.Holmberg@xxxxxxxxx] > Sent: Wednesday, June 07, 2006 2:06 AM > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: RE: [xsl] url encoding gets wrong with evd? > > > I don't have eclipse. Anybody know a good editor (for > windows) that can save correct ISO-8859-1 documents? > > Thanks! > /Niklas > > -----Original Message----- > From: Merico Raffaele [mailto:raffaele.merico@xxxxxxx] > > Sent: den 7 juni 2006 11:01 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: AW: [xsl] url encoding gets wrong with evd? > > Hi Niklas > > You are right. Something gets wrong when the file is saved. > At this point characters that can not be encoded are stored > as '?'. And a '?' in turn will be URL encoded as '%3F'. Do > you have any other possibility to edit your source files? May > be with eclipse!? > > Raffaele > > > -----Urspr|ngliche Nachricht----- > > Von: Niklas Holmberg [mailto:Niklas.Holmberg@xxxxxxxxx] > > Gesendet: Mittwoch, 7. Juni 2006 10:33 > > An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > > Betreff: RE: [xsl] url encoding gets wrong with evd? > > > > > > > > Hi! > > > > > Hmm, i get -%3F-%3F-%3F-%3F-%3F-%3F- > > How should i save my files so that they are ISO-8859-1? I > save as ANSI > > > using notepad. Is this wrong maybe? > > > > > /Niklas > > > > > -----Original Message----- > > From: Merico Raffaele [mailto:raffaele.merico@xxxxxxx] > > > > > Sent: den 7 juni 2006 10:19 > > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > > Subject: AW: [xsl] url encoding gets wrong with evd? > > > > > Hi Niklas > > > > > The execution of the following statement > > [<xsl:value-of select="javaUrlEncoder:encode('-E-D-V-e-d-v-')"/>] > > > > > in a stylesheet file starting with > > <?xml version="1.0" encoding="ISO-8859-1"?> > > > > > produced the following result > > [-%C5-%C4-%D6-%E5-%E4-%F6-] > > (This is the correct URL encoding for ISO-8859-1 > character sources.) > > > > > So using > > <?xml version="1.0" encoding="ISO-8859-1"?> instead of > > <?xml version="1.0" encoding="UTF-8"?> should solve the > problem ... > > > let me know ... Raffaele > > > > > > > > > -----Urspr|ngliche Nachricht----- > > > Von: Niklas Holmberg [mailto:Niklas.Holmberg@xxxxxxxxx] > > > Gesendet: Mittwoch, 7. Juni 2006 09:35 > > > An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > > > Betreff: RE: [xsl] url encoding gets wrong with evd? > > > > > > > > > > > > > > > Thank you very much =) > > > Something still isn't right though. EDVedv now all commes > out as %3F > > > > > > (which is ?). What's up with that? > > > Do i have to use some other encoding than utf-8 for my > xml-file? Any > > > > > > ideas? > > > > > > > > > /Niklas > > > > > > > > > -----Original Message----- > > > From: Merico Raffaele [mailto:raffaele.merico@xxxxxxx] > > > > > > > > > Sent: den 7 juni 2006 09:24 > > > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > > > Subject: AW: [xsl] url encoding gets wrong with evd? > > > > > > > > > > > > > > > Hi Niklas > > > > > > > > > DECLARE) xmlns:javaUrlEncoder="java.net.URLEncoder" as: > > > --- > > > <xsl:stylesheet version="1.0" > > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > > > xmlns:javaUrlEncoder="java.net.URLEncoder"> > > > --- > > > > > > > > > USE) javaUrlEncoder:encode(./name) as: > > > --- > > > <li><a><xsl:attribute > > > > name="href">http://gulasidorna.eniro.se/query?what=yp&search_wor > > > d= > > > <xsl > > > :v > > > alue-of select="javaUrlEncoder:encode(word)"/>&... > > > --- > > > > > > > > > By the way, I am using SaxonB 8.x (http://www.saxonica.com). > > > > > > > > > Cheers > > > Raffaele > > > > > > > > > > -----Urspr|ngliche Nachricht----- > > > > Von: Niklas Holmberg [mailto:Niklas.Holmberg@xxxxxxxxx] > > > > Gesendet: Mittwoch, 7. Juni 2006 08:46 > > > > An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > > > > Betreff: RE: [xsl] url encoding gets wrong with evd? > > > > > > > > > > > > > > > > > > > > > > > > I hope so too but i have no idea where and how to place > that piece > > > > > > > of > > > > > > > > > > code. I'm quite new to this... > > > > Below is my xsl-code. Would be great if you could help > me to point > > > > > > > out > > > > > > > > > > where and how to apply this. > > > > > > > > > > > > > > Thanks! > > > > > > > > > > > > > > <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet > version="1.0" > > > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > > > > <xsl:output method="html" encoding="ISO-8859-1" indent="yes"/> > > > > > > > > > > <xsl:template match="/"> > > > > <ul> > > > > <xsl:for-each select="root/row"> > > > > <li><a><xsl:attribute > > > > > name="href">http://gulasidorna.eniro.se/query?what=yp&search_w > > > > or > > > > d= > > > > <xsl > > > > :value-of > > > > > select="word"/>&selected_header_code=R1001257</xsl:attribute><xsl: > > > > valu > > > > e-of select="word"/></a></li> > > > > </xsl:for-each> > > > > </ul> > > > > </xsl:template> > > > > </xsl:stylesheet> > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: Merico Raffaele [mailto:raffaele.merico@xxxxxxx] > > > > > > > > > > > > > > Sent: den 6 juni 2006 09:02 > > > > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > > > > Subject: AW: [xsl] url encoding gets wrong with evd? > > > > > > > > > > > > > > Hi Niklas > > > > > > > > > > > > > > I had a similary problem a few months ago and I solved it with: > > > > > > > > > > > > > > javaUrlEncoder:encode(./name) > > > > > > > > > > > > > > > > > > > > > > > > while javaUrlEncoder: has to be declared as follows: > > > > > > > > > > > > > > xmlns:javaUrlEncoder="java.net.URLEncoder" > > > > > > > > > > > > > > Hope this helps > > > > Raffaele > > > > > > > > > > > > > > > -----Urspr|ngliche Nachricht----- > > > > > Von: Niklas Holmberg [mailto:Niklas.Holmberg@xxxxxxxxx] > > > > > Gesendet: Montag, 5. Juni 2006 15:59 > > > > > An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > > > > > Betreff: [xsl] url encoding gets wrong with evd? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > hi! > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > i'm trying to put out links from my xml file but the url > > > > > > encoding > > > > > > > > > > > gets > > > > > > > > > > > > > > > wrong with evd for some reason. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > my for each-loop contains this line: > > > > > <a><xsl:attribute > > > > > > name="href">http://gulasidorna.eniro.se/query?what=yp&search > > > > > _w or d= <xsl :value-of > > > > > > select="word"/></xsl:attribute><xsl:value-of > > > > > > > > > > > > > > > select="word"/></a> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > for example when i use the word "Avhdmtning". 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 and > > > > > > i > > > > > > > > > > > > > > > can't understand why i get Avh%C3%A4mtning?? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > all files (xml, xsl and output are UTF-8) and i use ASP to > > > > > > > > transform > > > > > > > > > > > > > > > my xml. > > > > > does anybody know how to correct this? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > thanks! > > > > > /niklas > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 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. > > > > > > 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] url encoding gets wrong w, Niklas Holmberg | Thread | RE: [xsl] url encoding gets wrong w, Niklas Holmberg |
Re: [xsl] XPath question, Wendell Piez | Date | [xsl] Copy part of the file if some, brigadasinter@xxxxxx |
Month |