]> git.ozlabs.org Git - patchwork/commit
INSTALL: Sprinkle a few UTF-8 in the mysql documentation
authorDamien Lespiau <damien.lespiau@intel.com>
Sun, 31 Aug 2014 00:02:37 +0000 (01:02 +0100)
committerJeremy Kerr <jk@ozlabs.org>
Sun, 7 Sep 2014 12:07:40 +0000 (20:07 +0800)
commite4f09a3605ea8f1efeeb6cae1fdf3bba9dbd412c
tree620c71f7afecd1dfcbb6cb0a097052da451b658d
parentad5fce448df4d6f604de3b2275cbeb3d4f2f3817
INSTALL: Sprinkle a few UTF-8 in the mysql documentation

When not specifying the charset/collation, I managed to create a latin1
database where all strings were encoded in latin1. That's really not
ideal. Adding 'CHARACTER SET utf8' when creating the DB fixes it. Then:

$ ./manage.py syncdb

will correctly create tables with UTF-8 encoded rows.

However, for some reason, when django creates the test tables, that
default, DB wide, encoding is not respected and one needs to provide an
additional TEST_CHARSET entry in the config dictionary.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
docs/INSTALL