While printing Cyrillic text from MySQL in my python3 program I get question marks instead of text.
The text I see in the MySQL table is Рожден ден
.
The text I see in the python3 program is ?????? ???
.
Type of row is class str.
For this list, I am using wxpython, wx module.
conn = pymysql.connect(host='localhost', database='Tasks', password='password', user='user')
cursor = conn.cursor()
cursor.execute('SELECT occasion,date,event FROM Important_Days')
records = cursor.fetchall()
for row in records:
pos = self.list1.InsertStringItem(0, row[0])
self.list1.SetStringItem(pos, 1, str(row[1]))
self.list1.SetStringItem(pos, 2, row[2])
conn.close()