Am 06.12.2011 um 16:23 schrieb Sven Van Caekenberghe:

> Please file a bug report. You could also suggest a fix based on the lastet 
> version if you feel like it. Or at least some unit test.

I have a fix for it. But I can't commit because squeaksource is down. 

Basically I changed ZnUtils>>writeQueryFields:on: to 
ZnUtils>>writeQueryFields:withTextEncoding:on: which uses 
encodeForHTTPWithTextEncoding:  instead of encodeForHTTP. In 
ZnApplicationFormUrlEncodedEntity it checks for the encoding and uses the 
appropriate method.

This is not nice but en par with the previous solution. I think the default 
behaviour (which encoding to use) needs to be configurable as well. The only 
thing that points towards a default is the w3c recommendation to use utf-8 for 
url safe encoding. But there is no strong reason to use any of those.

Norbert



Reply via email to