You have to make sure that mysqldb version is 1.2.2 to make unicode working.

Florian Konnertz a écrit :
>
> ok, i have updated to current svn version, but now the prob is in
> python-mysqldb
> Installed: 1.2.1c3-4ubuntu4
>
>
>
>   File
> "/usr/lib/python2.4/site-packages/SQLObject-0.8dev_r2019-py2.4.egg/sqlobject/mysql/mysqlconnection.py
> ", line 64, in makeConnection
>     db=self.db, user=self.user, passwd=self.password, **self.kw
> <http://self.kw>)
>   File "/usr/lib/python2.4/site-packages/MySQLdb/__init__.py", line
> 66, in Connect
>     return Connection(*args, **kwargs)
>   File "/usr/lib/python2.4/site-packages/MySQLdb/connections.py", line
> 134, in __init__
>     super(Connection, self).__init__(*args, **kwargs2)
> TypeError: 'charset' is an invalid keyword argument for this function
>
>
> any ideas?
> flo
>
>
> 2006/10/14, Florian Konnertz <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>:
>
>
>     hi all
>     i have similar prob with encoding in mysql
>     probably i'll ask soon and paste the code , fow now just a
>     question about the connection uri keywords.
>
>       File "/usr/lib/python2.4/site-packages/SQLObject-
>     0.7rc1-py2.4.egg/sqlobject/dbconnection.py", line 211, in __init__
>         DBConnection.__init__(self, **kw)
>     TypeError: __init__() got an unexpected keyword argument 'charset'
>
>     same with
>     sqlobject_encoding
>
>     what's wrong?
>
>     tia,
>     florian
>
>
>
>
>
>
>            Waht about an URI with
>         "...use_unicode=1&sqlobject_encoding=utf-8&charset=utf8"
>            ?
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ------------------------------------------------------------------------
>
> _______________________________________________
> sqlobject-discuss mailing list
> sqlobject-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss
>   


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to