
December 7th, 2012, 09:28 AM
|
|
Registered User
|
|
Join Date: Dec 2012
Posts: 2
Time spent in forums: 7 m 34 sec
Reputation Power: 0
|
|
|
Mysql-python writes unicode strings to the database
Using mysql-python, I receive unicode strings from the database. How can I encode them using utf-8 before inserting into the database. The problem is with the current setup, the tables contain unicode strings i.e. prefixed with u'' when I execute a Python file that reads and writes to the database. Any suggestions ?
Thanks
Ravi
|