File usr lib python2 site-packages MySQLdb cursors py line 148 in exec

1
2
3
4
5
6
7
File "/usr/lib/python2.4/site-packages/MySQLdb/cursors.py", line 148, in execute
query = query % db.literal(args)
File "/usr/lib/python2.4/site-packages/MySQLdb/connections.py", line 232, in literal
return self.escape(o, self.encoders)
File "/usr/lib/python2.4/site-packages/MySQLdb/connections.py", line 174, in string_literal
return db.string_literal(obj)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-17: ordinal not in range(128)