On 16.11.2009, at 23:04, Stephane Schitter wrote:
hello,
I am playing around with squeak to connect to webservices and I run into issues very early in the process. Something to do with url encoding. Is there any reason the following code:
'aa aa éé aa aa' encodeForHTTP
would generate this:
'aa%20aa%20%C3%A9%C3%A9%20%A9aa%20%A9aa'
where "space" is correctly set to %20 before the 'é' gets converted, but then becomes %20%A9 afterwards. As if the %A9 of my 'é' stays in the buffer and breaks my encoding of space character.
Seems you have uncovered a bug. Would be great if you could report it at
Here is a workaround:
'aa aa éé aa aa' squeakToUtf8 encodeForHTTPWithTextEncoding: 'latin1'
- Bert -