OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] problem with #&233; characters and such in URL

[ Lists Home | Date Index | Thread Index ]

Title: Message
That's correct -- but it's still better than sending out broken URLs in the first place, right?
 

--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

-----Original Message-----
From: Michael Kay [mailto:michael.h.kay@ntlworld.com]
Sent: Tuesday, January 21, 2003 4:41 PM
To: 'Julian Reschke'; 'Alexander Ipfelkofer'; xml-dev@lists.xml.org
Subject: RE: [xml-dev] problem with #&233; characters and such in URL

 
the main problem here is that you're producing hrefs with URLs that contain invalid characters (URLs do not contain non-ASCII characters). Fix this, and all user agents should start to behave the same.  
 

But if he fixes it by HH-encoding the non-ASCII characters, he's got to do decide whether to use UTF-8 or ISO-8859-1 for the escapes, and he's back where he started. 

 Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com

 
 
Julian

--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

-----Original Message-----
From: Alexander Ipfelkofer [mailto:nuwonda@hotmail.com]
Sent: Tuesday, January 21, 2003 1:06 PM
To: xml-dev@lists.xml.org
Subject: Re: [xml-dev] problem with #&233; characters and such in URL

I am evaulating movie collector software which support xml output. ATM I am toying with Collectorz.com Movie Collector, albeit they don't seem to fully support XMLST, at least no javascript at all afaik.

Anyway, as I said the xml output generates a href links like this:
<a href="/Name?Escand&#243;n,+Jos&#233;">Jos&#233; Escand&#243;n</a>

in IE it will end up like this (notice the decimals are reverted back to ASCII):
http://us.imdb.com/Name?Escandón,+José
which works just fine

in Opera it will end up like this
"http://us.imdb.com/Name?Escand%C3%B3n,+Jos%C3%A9"
which will not work. Might be an Opera specific problem? Haven't tested this with Netscape or on other OS platforms.

So I guess to be compatible with all browsers I need to use HEX instead of DECIMAL code sequences for special chars? There must be one simple command to encode the output so that special characters are escaped hexadecimal instead of decimal, no?

If not then I guess I'll have to use IE for now, ergh.

 

Cheers

Alex

>From: "Rick Jelliffe"
>To: <XML-DEV@LISTS.XML.ORG>
>Subject: Re: [xml-dev] problem with #&233; characters and such in URL
>Date: Tue, 21 Jan 2003 22:28:18 +1100
>
>From: "Alexander Ipfelkofer"
>
> > The data gets read out of a DB where the names are stored binary (I think)
>
>Can you tell us the exact products and versions you are using?
>
>Cheers
>Rick Jelliffe
>
>-----------------------------------------------------------------
>The xml-dev list is sponsored by XML.org , an
>initiative of OASIS
>
>The list archives are at http://lists.xml.org/archives/xml-dev/
>
>To subscribe or unsubscribe from this list use the subscription
>manager:


Hier klicken ----------------------------------------------------------------- The xml-dev list is sponsored by XML.org , an initiative of OASIS The list archives are at http://lists.xml.org/archives/xml-dev/ To subscribe or unsubscribe from this list use the subscription manager:




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS