I'm trying to use unicode in my software, and either
I misunderstand "MySQLdb User's Guide" or something is
not supported in 1.2.1c3:
It says in the section related to connect parameters:
"unicode If set, CHAR and VARCHAR columns are returned
as Unicode strings, using the specified character set."
Traceback (most recent call last):
File "test30.py", line 24, in ?
c = sql_io.DBHandler()
File "../sql_io.py", line 73, in init
self._connection = connect(conv=_type_conv,
init_command='SET AUTOCOMMIT=0', unicode='utf-8')
line 66, in Connect
return Connection(*args, kwargs)
line 134, in init
super(Connection, self).init(*args, kwargs2)
TypeError: 'unicode' is an invalid keyword argument for
What's wrong? I'd appreciate a bit more information on
the behavior I get:
1) Will all CHAR, VARCHAR column data be returned as
2) Can I get some as simple strings as I was used to?
3) Some example how you create the mysql column
definitions and what output you get in mysql(1)
commadline client and what through mysql-python?