[Zope] MySQLdb and unicode

2005-05-06 Thread robert rottermann
Hi there,
I have a problem using MySQLdb and unicode.
with older version (0.92) I could set a parameter unicode to the 
connect() method to tell MySQLdb what charset to use.

This parameter is not accepted anymore.
The only way to deal with non ascii character I found was setting 
pythons default charset to utf-8.

is ther an other way ?
thanks
Robert
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] MySQLdb and unicode

2005-05-06 Thread Andy Dustman
On 5/6/05, robert rottermann [EMAIL PROTECTED] wrote:
 Hi there,
 I have a problem using MySQLdb and unicode.
 with older version (0.92) I could set a parameter unicode to the
 connect() method to tell MySQLdb what charset to use.
 
 This parameter is not accepted anymore.
 The only way to deal with non ascii character I found was setting
 pythons default charset to utf-8.

In 1.2, you can set use_unicode=True to tell it to return text-like
columns as unicode objects. This uses whatever the current character
set is on the connection. Prior to MySQL-4.1, there was no way to
change the character set being used via the client without at least
restarting the server. In 4.1 and newer, you can change this with a
client configuration file or with SQL; I recommend using
read_default_file.

If you're not using ZMySQLDA, then this really isn't a Zope issue, and
you should follow-up in the Help forum:
https://sourceforge.net/forum/forum.php?forum_id=70461
-- 
Computer interfaces should never be made of meat.
http://www.terrybisson.com/meat.html
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] MySQLdb

2001-01-12 Thread Andy Dustman

On Thu, 11 Jan 2001, Martin Fekete wrote:

 sombody compiled MySQLdb under WIN32 ?

Somebody has. Look for a link at:

http://dustman.net/andy/python/MySQLdb/0.3.0 

-- 
andy dustman  |  programmer  |  comstar.net is part of the Globix network
telephone: 770.485.6025 / 706.549.7689 | icq: 32922760 | pgp: 0xc72f3f1d
"Therefore, sweet knights, if you may doubt your strength or courage, 
come no further, for death awaits you all, with nasty, big, pointy teeth!"


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] MySQLdb

2001-01-11 Thread Martin Fekete



sombody compiled MySQLdb under WIN32 
?

Martin Fekete