[Zope-CMF] Re: [RFC] [Patch] GenericSetup and encodings

Yves Bastide ybastide at wanadoo.fr
Thu Jun 8 11:13:40 EDT 2006


yuppie wrote:
> 
> As you already mentioned setting default-zpublisher-encoding to 'utf-8' 
> doesn't really work. Just found that DT_Util.join_unicode has 'latin-1' 
> hardcoded, so properties with other encodings are not supported by 
> manage_propertiesForm.
> 
> Given that I don't think we have to support other 
> default_zpublisher_encodings than 'latin-1'.

As AJ answered me 
(http://article.gmane.org/gmane.comp.web.zope.devel/11655), Unicode 
properties should use the u- types (ustring, utext). So the way to 
proceed could be:

* document that only iso-8859-1 \inter default_encoding string/text 
properties are supported

* ensure that the unicode types work (e.g., 
TarballExportContext.writeDataFile don't accept unicode text)

* change GenericSetup users (CMF, CPS) to use u* when needed (e.g. 
title, description). Yep, sure :-)

> 
> Cheers, Yuppie

yves



More information about the Zope-CMF mailing list