Hi!
I'm still having issues with the indexer and non-ASCII characters.
This is line 70 in indexer.py (svn trunk):
value = u', '.join(map(lambda v: smart_str(self.resolve_one(v,
bit)), value))
The result of the map function is a list of byte strings, which is
joined by a unicode object. Is this really intended or is this a
bug? The indexer doesn't throw a UnicodeDecodeError when joining the
list by a byte string or using unicode objects within the list.
works:
value = ', '.join(map(lambda v: smart_str(self.resolve_one(v,
bit)), value))
works:
value = u', '.join(map(lambda v: smart_unicode(self.resolve_one(v,
bit)), value))
Is "value" supposed to be a unicode object or a byte string?
Bye, Andreas
--
You received this message because you are subscribed to the Google Groups "Djapian Users" group.
To post to this group, send email to
djapia...@googlegroups.com.
To unsubscribe from this group, send email to
djapian-user...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/djapian-users?hl=en.