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

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



--On 16. Juni 2006 13:42:40 +0200 Andreas Jung <lists at zopyx.com> wrote:

>
>
> --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).

Sorry, I was misreading your posting. But to some degree it looks odd..put 
it in the Zope bugtracker otherwise it will be forgotten!

-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/4915ee1c/attachment.bin


More information about the Zope mailing list