[Newbies] HTTP encoding into UTF8
bert at freudenbergs.de
Mon Nov 16 22:17:51 UTC 2009
On 16.11.2009, at 23:04, Stephane Schitter wrote:
> 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:
> 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 -
More information about the Beginners