[Zope] manage_changeProperties has strange side effect on response Content-Type.

Andreas Jung lists at zopyx.com
Fri Jun 16 07:42:40 EDT 2006



--On 16. Juni 2006 13:39:03 +0200 Tino Wildenhain <tino at wildenhain.de> 
wrote:

>>
>> item.manage_changeProperties({'title':'Hustype'}) 	gives utf-8.
>> item.manage_changeProperties(title='Hustype')		leaves ISO-8859-1 intact.
>>
>> WTF is that?
>
> My guess would be the dict-argument is used in place of
> REQUEST and therefore sets some default encoding in
> request - which it certainly acquires.

'Hustype' is  pure ASCII...this will *always* have the same encoding in 
almost all encodings (except in Klingon).

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20060616/d52135ab/attachment.bin


More information about the Zope mailing list