Python Mysqldb Returns Question Marks
I am using the following code in python and it seems to be returning the 'Name' as question marks since the name is in russian. Any help would be much appreciated. import MySQLdb
Solution 1:
MySQLdb.connect takes a use_unicode parameter, which may solve the problem. If not, you may also need to set charset to whatever your table uses:
MySQLdb.connect(host="localhost", user="root",passwd="*****", use_unicode=True, charset='xxxxx')
Post a Comment for "Python Mysqldb Returns Question Marks"