[Project_owners] URL decoding

Erwin Wessels erwin at transpontine.com
Mon Feb 9 17:41:12 EST 2004


Good. Now to state the extremely obvious: the + is a space character 
encoding. It should/could be %20, but for historical reasons, etc.etc.

-E

Eelco van Kuik wrote:

>?? This actually works.
>
>I see this is new in ECMA scripting.
>
>Thanks!
>
>Regards,
>
>Eelco van Kuik
>
>  
>
>>-----Oorspronkelijk bericht-----
>>Van: project_owners-bounces at mozdev.org 
>>[mailto:project_owners-bounces at mozdev.org] Namens Karsten Düsterloh
>>Verzonden: maandag 9 februari 2004 17:04
>>Aan: Mozdev Project Owners List
>>Onderwerp: Re: [Project_owners] URL decoding
>>
>>
>>Eelco van Kuik aber hob zu reden an und schrieb:
>>    
>>
>>>	// This is á ß õ urlencoded with UTF-8
>>>      
>>>
>>No, it isn't.
>>
>>    
>>
>>>	var str = '%c3%A1+%C3%9F+%C3%B5';
>>>      
>>>
>>1. This is just a string, so can use decodeURI(str).
>>2. And that will lead to 'á+ß+õ', because these + signs 
>>aren't encoded.
>>
>>
>>Karsten
>>_______________________________________________
>>Project_owners mailing list
>>Project_owners at mozdev.org
>>http://mozdev.org/mailman/listinfo/project_owners
>>
>>    
>>
>
>
>_______________________________________________
>Project_owners mailing list
>Project_owners at mozdev.org
>http://mozdev.org/mailman/listinfo/project_owners
>  
>

-- 
This is a signature.



More information about the Project_owners mailing list