What is the best collation in MYSQL that I need to use to support all languages in Varchar datatype?
Thanks,
What is the best collation in MYSQL that I need to use to support all languages in Varchar datatype?
Thanks,
If I were starting a project today with MySQL 8.0, I'd choose this as a default:
character set: utf8mb4
collation: utf8mb4_0900_ai_ci
(reportedly this collation does not work for Canadian French)
See also: https://www.percona.com/live/e17/sites/default/files/slides/Collations%20in%20MySQL%208.0.pdf
As character set utf8mb4
is "safest", as it also supports 4-byte Unicode, where utf8
only goes up to 3 bytes.
The collation utf8mb4_unicode_520_ci
includes all Unicode characters and has some "smart" comparison matching.