From 11ac50b18e578498c1d95e0a75921b5864387d46 Mon Sep 17 00:00:00 2001 From: Moayad Mardini Date: Fri, 18 Apr 2014 18:41:29 +0200 Subject: [PATCH] Fixed #22458 -- Added a note about MySQL utf8_unicode_ci collation Thanks tobami at gmail.com for the report. --- docs/ref/databases.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt index c6fde68a1a..1ea497c1b4 100644 --- a/docs/ref/databases.txt +++ b/docs/ref/databases.txt @@ -363,6 +363,15 @@ table (usually called ``django_session``) and the .. _fixed in MySQLdb 1.2.2: http://sourceforge.net/tracker/index.php?func=detail&aid=1495765&group_id=22307&atid=374932 +Please note that according to `MySQL Unicode Character Sets`_, comparisons for +the ``utf8_general_ci`` collation are faster, but slightly less correct, than +comparisons for ``utf8_unicode_ci``. If this is acceptable for your application, +you should use ``utf8_general_ci`` because it is faster. If this is not acceptable +(for example, if you require German dictionary order), use ``utf8_unicode_ci`` +because it is more accurate. + +.. _MySQL Unicode Character Sets: http://dev.mysql.com/doc/refman/5.7/en/charset-unicode-sets.html + Connecting to the database --------------------------