Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As of commit 4ed1267 (see https://www.drupal.org/node/2764111), default collation is currently set to utf8mb4_general_ci
which "fails to implement all of the Unicode sorting rules, which will result in undesirable sorting in some situations, such as when using particular languages or characters." See discussion at http://stackoverflow.com/a/766996
This patch changes default collation to utf8mb4_unicode_520_ci
which is based on UCA 5.2.0. See https://dev.mysql.com/doc/refman/5.6/en/charset-collation-names.html
Comment | File | Size | Author |
---|---|---|---|
#2 | utf8mb4_unicode_520_ci-2792409-2.patch | 1.68 KB | bwaindwain |
Comments
Comment #2
bwaindwain CreditAttribution: bwaindwain as a volunteer commentedComment #3
colanComment #4
helmo CreditAttribution: helmo as a volunteer and at Initfour websolutions for Aegir Cooperative commentedI'd love to improve this ... but would this not add more confusion? Drupal core 7 and 8 still seem to default to/advise/are tested with 'utf8mb4_general_ci'.
Is there a core issue about this?
Comment #5
colanAgreed. Please open an issue in Drupal core (as I couldn't find one), and add it as related here. We should be doing what's happening there as it's upstream for us.
Comment #6
geek-merlin