Commit a7e6e26d by Kazuhiko Shiozaki

fix possible UnicodeEncodeError in ZopeFind.

1 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()+
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!