I'm seeing
OperationalError (1267, "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='")
It looks like some of my variables are UTF8 strings
'name': 'p\xc7\x9d\xca\x87\xc9\x9f\xc4\xb1\xc9\xa5s Badge'
Is this a configuration issue? If so, how can i solve it? I'd like to handle everything in Unicode (I think).
You can change the table encoding via the shell:
$ manage.py shell >>> from django.db import connection >>> cursor = connection.cursor() >>> cursor.execute('SHOW TABLES') >>> results=[] >>> for row in cursor.fetchall(): results.append(row) >>> for row in results: cursor.execute('ALTER TABLE %s CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;' % (row[0]))
https://mayan.readthedocs.org/en/v0.13/faq/index.html
It appears your database is defaulted to latin1_swedish_ci, and therefore cannot accept all utf8 characters. You need to change the configuration of the MySQL database tables to use utf8_general_ci. A good blogpost about this (with links to a tool) can be found at MySQL Performance Blog
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With