Re: [Zope-dev] [ZOPE 2.6 B1] Unicode/locale problems with OFS/dtml/properties.dtml
Hi! I have tracked down the problem with Collector issue 517 (Unicode problems) now: My Product used a modified manage_page_header that did not set the meta header for the encoding. After copying the relevant lines from the new manage_page_header in Zope 2.6 everything works fine, except for one remaining issue: One can create properties with Umlauts or other non-ASCII characters (which probably should be forbidden in general). While in 2.5.1 it is possible to delete such properties again, 2.6b1 will throw an error: The property [...] does not exist Probably the lookup in the property dictionary does not use the right encoding. I am not sure if that breaks old code, but the best way of getting rid of that problem might be to catch the creation of non-ASCII property names and don't let people use them. Cheers Joachim
On Friday 27 Sep 2002 10:38 am, Joachim Werner wrote:
After copying the relevant lines from the new manage_page_header in Zope 2.6 everything works fine,
hurrah!
except for one remaining issue:
boooo!!!!
One can create properties with Umlauts or other non-ASCII characters (which probably should be forbidden in general). While in 2.5.1 it is possible to delete such properties again, 2.6b1 will throw an error:
The form was not telling ZPublisher's parameter marshalling that it wanted the property id as a string. try this (patch includes the previous fix) Index: properties.dtml =================================================================== RCS file: /cvs-repository/Zope/lib/python/OFS/dtml/properties.dtml,v retrieving revision 1.8 diff -r1.8 properties.dtml 2c2 < <dtml-var "u''"> ---
<dtml-var "u' '"> 47c47 < <input type="checkbox" name="_ids:utf8:list" value="<dtml-var id html_quote>"
<input type="checkbox" name="_ids:utf8:string:list" value="<dtml-var id html_quote>"
participants (2)
-
Joachim Werner -
Toby Dickenson