Commit a7e6e26d authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix possible UnicodeEncodeError in ZopeFind.

parent 734b70c5
......@@ -449,6 +449,8 @@ class Field:
return obj.method_name
elif obj_type is TALESField.TALESMethod:
return obj._text
elif obj_type is unicode:
return obj.encode('utf-8')
return str(obj)
return ''.join(map(getSearchSource,
(self.values.values()+self.tales.values()+
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment