mysql - Django syncdb not respecting collation and encoding -



mysql - Django syncdb not respecting collation and encoding -

i'm setting project that'll available in 16 languages i'm trying setup database unicode characters using next init command;

databases = { 'default': { 'engine': 'django.db.backends.mysql', 'name': database_name, 'user': '', 'password': '', 'host': 'localhost', 'port': '', 'storage_engine': 'innodb', 'conn_max_age': 100, 'atomic_requests': true, 'options': { 'init_command': 'set storage_engine=innodb,character_set_connection=utf8,collation_connection=utf8_unicode_ci', }, } }

when check tables created python manage.py syncdb they're set latin1. i've got correct? or making error using init_command collation & encoding?

mysql django

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -