I have create a DB and i use Mysqldb.
I want to insert and select data chars type, and that chars are in greek language.
I have set the collation of my database in utf-8_general_ci but, when i insert a greek word i see something strange characters, then i try to select via python the rows of this table and the result is this (1,??????).
Can anyone help me please?Thanks
There’s a problem with your encoding possibly, make sure to set utf8 in python, and try to set the db:
Or using a Greek character set 🙂
Python:
Then to output, you need to specify the string is Unicode: