Answer the question
In order to leave comments, you need to log in
Python + MySQL: how to enter Cyrillic text into a table?
When I try to enter Cyrillic text into the MySQL database, I get an error
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 26-32: ordinal not in range(256)
_mysql_exceptions.OperationalError: (1366, "Incorrect string value: '\\xD1\\x80\\xD0\\xBF\\xD1\\x80...' for column 'text1' at row 1")
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question