[mod_python] How to set connection parameters?

Manfred Stienstra manfred.stienstra at dwerg.net
Mon Jan 12 22:04:12 EST 2004


On Mon, 2004-01-12 at 17:05, David Fraser wrote:
> It seems that you can just pass in a unicode parametyer to the connect 
> function, which contains the encoding

Please note that most MySQL installs don't support utf-8 yet. Only the
beta versions. There is also a bug in python MySQLdb, it doesn't convert
text fields to unicode objects, because the primary type of a text field
is BLOB in MySQL.

Manfred



More information about the Mod_python mailing list