[Zope] Storing unicode in ZODB objects

Thibaud Morel l'Horset teebes at gmail.com
Sat Dec 13 19:13:10 EST 2008


Hello,

I'm trying to store strings with certain unicode characters that don't
convert to ascii in the ZODB. Specifically, as a file object and as
properties of that file object. I get the following errors (from a script):

*Error Type: AttributeError*
*Error Value: 'unicode' object has no attribute 'seek'*

and

*Error Type: UnicodeEncodeError*
*Error Value: 'ascii' codec can't encode character u'\u201c' in position 0:
ordinal not in range(128)*

Is there a way to work around this? or do I need to use a relational DB to
store the data? I'm on Zope 2.9.7

Thanks,

Thibaud
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20081213/92320001/attachment.html 


More information about the Zope mailing list