The error below:
django.db.utils.OperationalError: (1366, "Incorrect string value: '\\xF0\\x9F\\x93\\xA2 \\xD7' ")
occurs when using emojis. When I am saving a paragraph containing emojis from the textarea
to the database (MySQL). I saw in StackOverflow that to solve this error you need to change the character type of utf8
(which is actually utfmb3 in MySQL) to utfmb4
. I am new to MySQL and I don't know how to configure it in the PythonAnywhere. What should I fo, because the use of Emojis are very important. Due to this error, all the characters in the textarea
cant be save to the database.