[Zope-DB] Re: ZMySQLDA and utf-8

Wolfram Kraus kraus at hagen-partner.de
Tue Mar 1 07:34:10 EST 2005


Michal Kurowski wrote:
[...]
> 1) the official one:
> 
> generate or edit the "sitecustomize" file (usually
> "/usr/local/lib/python2.3/sitecustomize.py" or something similar):
> 
> import sys
> sys.setdefaultencoding('utf-8')
> 
> 2) the real hack ;-)
> 
> there's undocumented parameter for ZMySQLdb connection string - 
> just add "unicode=1" at the end of it 
> 
> You'll have to find out which one of those will work for you ;-)

Unfortunately neither of them work for me. I'm stuck with latin1 unless 
I set it in _begin().
Any other comments on this?

Wolfram



More information about the Zope-DB mailing list