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 ]

[Alexander Ipfelkofer]

> 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.
>

I think you may have encountered an Opera feature, or possibly a bug in the
feature.  In Opera preferences, at least on my version - 6.04 on Windows -
there is a Preferences setting under "Network" to encode URLs as UTF-8 or
not.  Try changing that setting and see if your URLs start working.

Of course, even if they do, you cannot control which setting your users have
checked (probably the Opera default but not certainly).

  I made the string visible with this code (I copied the anchor from your
post):

<a href="/Name?Escand&#243;n,+Jos&#233;">Jos&#233; Escand&#243;n</a>
<br>
<script type='text/javascript'>
    var anchor=document.links[0]
    document.write(anchor.href)
</script>

I am running Windows 2000, iso8859-1 default encoding.

On Mozilla 1.2 amd Phoenix (based on Mozilla), the page displays

 file:///Name?Escand%F3n,+Jos%E9

This is the correct escaped form.

My other browsers displayed the string all in the same way, readable
characters with no visible escapes -

IE6 SP1
Opera 6.04
Netscape 4.76

It is still possible that these browsers are displaying the string correctly
but will send it to the server incorrectly, but at least Opera displays the
same as IE and Netscape.  This suggests that Opera knows what the string
really is and has properly unescaped it.

Cheers,

Tom P






 

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

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