[Zope-CMF] pb with unicode
Dieter Maurer
dieter@handshake.de
Fri, 13 Dec 2002 23:12:18 +0100
Sylvain Th=E9nault writes:
> hi
>=20
> I've a problem with unicode attribute : I've an object with some unico=
de
> attributes, and when this object is added to a folder an exception
> occurs when the object get cataloged :=20
>=20
> Module OFS.ObjectManager, line 272, in _setObject
> Module Products.CMFCore.CMFCatalogAware, line 146, in manage_afterAd=
d
> Module Products.CMFCore.CMFCatalogAware, line 41, in indexObject
> Module Products.CMFCore.CatalogTool, line 239, in indexObject
> Module Products.CMFCore.CatalogTool, line 232, in catalog_object
> Module Products.ZCatalog.ZCatalog, line 500, in catalog_object
> Module Products.ZCatalog.Catalog, line 347, in catalogObject
> Module Products.PluginIndexes.TextIndex.TextIndex, line 315, in
> index_object
> Module Products.PluginIndexes.TextIndex.GlobbingLexicon, line 246, i=
n
> Splitter UnicodeError: ASCII encoding error: ordinal not in range(128)
>=20
> I'm using Zope 2.6.0 and CMF 1.3. Plone default encoding is set to
> iso-8859-1.
Tell this Python also.
This is done in a file "sitecustomize.py" (see "site.py" for a
documentation) with "sys.setdefaultencoding(...)".
Dieter