Re: [SQLObject] Unable to insert unicode string into the MySQL table
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: sophana <so...@zi...> - 2006-10-15 14:42:06
|
You have to make sure that mysqldb version is 1.2.2 to make unicode worki= ng. Florian Konnertz a =E9crit : > > 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/sqlo= bject/mysql/mysqlconnection.py > ", line 64, in makeConnection > db=3Dself.db, user=3Dself.user, passwd=3Dself.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 <f.k...@gm... > <mailto:f.k...@gm...>>: > > > 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=3D1&sqlobject_encoding=3Dutf-8&charset=3Dutf8" > ? > > > > -----------------------------------------------------------------------= - > > -----------------------------------------------------------------------= -- > Using Tomcat but need to do more? Need to support web services, securit= y? > 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 Geron= imo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > -----------------------------------------------------------------------= - > > _______________________________________________ > sqlobject-discuss mailing list > sql...@li... > https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss > =20 |