Am 06.12.2011 um 16:23 schrieb Sven Van Caekenberghe:
In my image, there is no charset attribute for that mime type, did you add it yourself ?
ZnApplicationFormUrlEncodedEntity new contentType printString
gives
'application/x-www-form-urlencoded'
It is because MimeTypes types are the same instance. If I do
| client entity |
client := ZnClient new.
entity := client applicationFormUrlEncodedEntity.
entity contentType charSet: 'iso-8859-1'
then in ZnClient>> applicationFormUrlEncodedEntity you use ZnMimeType>>applicationFormUrlEncoded which gets the sole instance from a pre-initialized dictionaries MimeTypes. If I set the charSet once it will alter subsequent entities created this way.
Norbert