What, for example, is uppercase and lowercase, right?
mysql> SELECT 'γ' = 'γ' COLLATE utf8_general_ci; +---------------------------------------+ | 'γ' = 'γ' COLLATE utf8_general_ci | +---------------------------------------+ | 0 | +---------------------------------------+ mysql> SELECT 'γ' = 'γ' COLLATE utf8_unicode_ci; +---------------------------------------+ | 'γ' = 'γ' COLLATE utf8_unicode_ci | +---------------------------------------+ | 1 | +---------------------------------------+ mysql> SELECT 'γ' = 'γ' COLLATE utf8_unicode_520_ci; +-------------------------------------------+ | 'γ' = 'γ' COLLATE utf8_unicode_520_ci | +-------------------------------------------+ | 1 | +-------------------------------------------+
I recommend changing the COLLATION utf8_unicode_520_ci column COLLATION utf8_unicode_520_ci (or utf8mb4_unicode_520_ci ).
If you expect to include Chinese, then be sure to use utf8mb4 . (Perhaps this advice applies to kanji.)
source share