unicode error when using umlauts in a metadata element which is indexed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Silva |
Fix Released
|
Critical
|
Jan-Wijbrand Kolman |
Bug Description
for testing of issue 820 I created a new metadata set with a string field which
is indexed. When entering umlauts into this field I get:
Traceback (innermost last):
Module ZPublisher.Publish, line 98, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 39, in call_object
Module Products.
Module Shared.
Module Shared.
Module Products.
Module Script (Python), line 17, in save_metadata
- <FSPythonScript at /UniHd/
/UniHd/
- Line 17
Module Products.
Module Products.
Module Products.
Module Products.
Module Products.
Module Products.
Module Products.
UnicodeError: ASCII encoding error: ordinal not in range(128)
since this indicates that the error has something todo with indexing, I created
another string field which is not indexed. Here entering of umlauts is possible.
Simply setting indexed to "no" on the first field had no effect.
I use the 'ZCTextIndex' instead of the 'TextIndex'. The 'ZCTextIndex' can also
handle Unicode characters. See also Issue828.