[Zope] Searching Catalog for Unicode Values of FieldIndex
Dieter Maurer
dieter at handshake.de
Wed Aug 18 13:29:05 EDT 2004
Mohsen Moeeni wrote at 2004-8-18 19:54 +0430:
> ...
>Dieter, I still get an exception while trying to see the Indexed objects in
>the catalog (manage_objectInformation). The problem is that
>``getEntryForObject`` tries to return ``str`` of a value. But ``str`` of Unicode
>objects out of ASCII range, raises and excpetion. Full traceback below.
A bug in "ManagableIndex"...
I will see that I can fix it for the next release.
A workaround woult be to set Python's "default encoding"
in "sitecustomize.py", e.g.
import sys
sys.setdefaultencoding('iso-8859-1')
--
Dieter
More information about the Zope
mailing list