dealing with special characters in Python and MySQL
ronrsr
ronrsr at gmail.com
Mon Dec 18 02:15:05 EST 2006
> >
> Try putting "use_unicode=True" in the MySQLdb "connect" call.
tried that, and also added charset="utf8" -
now, I can't do any string operations, I get the error msg:
descriptor 'lower' requires a 'str' object but received a 'unicode'
args = ("descriptor 'lower' requires a 'str' object but received
a 'unicode'",)
or similar, on every string operation.
many thanks,
-0rsr-
>
> See
>
> http://sourceforge.net/tracker/index.php?func=detail&aid=1559350&group_id=22307&atid=374932
>
> and look at other charset related bugs at
>
> http://sourceforge.net/tracker/?atid=374932&group_id=22307&func=browse
>
> Also note that MySQLdb didn't support this until recently, so check
> your version of MySQLdb. There still seem to be problems in that area.
>
> John Nagle
> Animats
More information about the Python-list
mailing list