[ZCM] [ZC] 227/ 2 Comment "TextIndex: Can't index unicode strings"

Collector: Zope Bugs and Patches ... zope-coders@zope.org
Sun, 17 Feb 2002 14:59:18 -0500


Issue #227 Update (Comment) "TextIndex: Can't index unicode strings"
 Status Pending, Zope/bug medium
To followup, visit:
  http://collector.zope.org/Zope/227

==============================================================
= Comment - Entry #2 by snej on Feb 17, 2002 2:59 pm


Uploaded:  "patsch"
 - http://collector.zope.org/Zope/227/patsch/view
A test for tests/testTextIndex.py



________________________________________
= Request - Entry #1 by snej on Feb 17, 2002 2:40 pm

index_object() of TextIndex.py raises a 
UnicodeError: ASCII encoding error: ordinal not in range(128)
for strings containing actually non-ASCII unicode,
because it applies str() on all input.

Workaround: Use xxx_encoding to pass unicode 
in an encoding into the TextIndex.




==============================================================