>[Sorry, I forgot to change the subject line. I'm resending this so it
>threads correctly in the archives.]
>
>>> In my initial message, I noted that the entering the following string
>>> into a web form:
>>>
>>> M=FC! (second letter is umlauted 'u')
>>>
>>> Causes the web browser to encode it as follows:
>>>
>>> M%FC%21
>>
>> This doesn't look really correct. M=FC! as a URL encoded (Hex
>> bytes) string=
>> should read M%C3%BC%21.
>
>Indeed, the UTF-8 chart I am looking at lists %C3%BC as the way to
>hex-encode the umlauted 'u'. However, every web browser I've tried
>sends that character as %FC.
Are you sure you have set the character set for your form to UTF-8? I have
tested Safari, Firefox and Opera, and they are all sending it as %C3%BC.
>Even if the web browser sends %C3%BC for the character, though,
>decodeURLComponent doesn't interpret it correctly... the following
>command:
>
>msgBox decodeURLComponent("%C3%BC")
>
>...yields a dialog box containing a square root symbol and a degree
>symbol (values C3 and BC from the MacRoman encoding).
That's true. If you forget to tell decodeURLComponent what encoding you're
using :-) Try decodeURLComponent("%C3%BC", encodings.UTF8).
--
*************************************************************
Christer Olsson PO Box 9160 Phone +46 40 25 85 85
Ljusa Idéer AB SE-200 39 Malmo Fax +46 40 25 85 89
Kantyxegatan 5 Sweden http://www.ljusaideer.se
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>