I recently upgraded WAMPServer and now in phpMyAdmin, I see both collations utf8_unicode_ci
and utf8_unicode_520_ci
. I was using "utf8_unicode_ci" for Turkish applications, but I wonder what is different in the new *_520
collation?
相关问题
- sqlyog export query result as csv
- NOT DISTINCT query in mySQL
- MySQL: conduct a basic search
- Why sometimes there is one of more gap(s) in the v
- mySQL alter table on update, current timestamp
If you want only Turkish, then consider
utf8_turkish_ci
. Here are most of the differences (taken from http://mysql.rjweb.org/utf8_collations.html ):Notice how Æ, Ç, Ð, Ğ, etc, are sorted differently in the different collations.
520 probably will not impact normal text, especially just Turkish. For example, Turkish and 520 consider
Ð
to be a separate letter, bututf8_unicode_ci
treats it equal toD
. It looks like 520 is 'closer' to turkish, but not identical for all the letters.As documented under Collation Names:
As you can read here (thanks user3399549 for link) there is problem with sorting/comparing polish letter "Ł" (L with stroke) (lower case: "ł"; html esc:
ł
andŁ
) here Peter Gulutzan explain differences between collocations:In polish language letter Ł is after letter L and before M. We can write this in following way (for clarify):
So to avoid this kind of problems (with sorting/comapring) use
utf8_unicode_ci
.