[GH-ISSUE #1619] modoboa database collation? #1273

Closed
opened 2026-02-27 11:16:14 +03:00 by kerem · 3 comments
Owner

Originally created by @stefaweb on GitHub (Nov 19, 2018).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1619

Hello!

Just one basic question.

For the modoboa database (with MariaDB), what is the best collation to use ?

utf8_general_ci
or
utf8mb4_unicode_ci
or
utf8mb4_general_ci

Sincerely,

Originally created by @stefaweb on GitHub (Nov 19, 2018). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1619 Hello! Just one basic question. For the modoboa database (with MariaDB), what is the best collation to use ? utf8_general_ci or utf8mb4_unicode_ci or utf8mb4_general_ci Sincerely,
kerem closed this issue 2026-02-27 11:16:14 +03:00
Author
Owner

@tonioo commented on GitHub (Nov 20, 2018):

@stefaweb I'm not a MariaDB user so I can't really help you, sorry.

<!-- gh-comment-id:440327788 --> @tonioo commented on GitHub (Nov 20, 2018): @stefaweb I'm not a MariaDB user so I can't really help you, sorry.
Author
Owner

@Arvedui commented on GitHub (Nov 20, 2018):

You should probably use utf8mb4_unicode_ci, assuming that you use a somewhat recent version.

utf8_general_ci is not utf8 because mysql. It only allows for 3 Byte characters not 4 Byte.
utf8mb4_general_ci "just" sorts differently than the Unicode variant, which may or may not lead to unexpected results.

<!-- gh-comment-id:440363479 --> @Arvedui commented on GitHub (Nov 20, 2018): You should probably use `utf8mb4_unicode_ci`, assuming that you use a somewhat recent version. `utf8_general_ci` is not utf8 because mysql. It only allows for 3 Byte characters not 4 Byte. `utf8mb4_general_ci` "just" sorts differently than the Unicode variant, which may or may not lead to unexpected results.
Author
Owner

@tonioo commented on GitHub (Nov 23, 2018):

@Arvedui Thank you for the answer 👍

<!-- gh-comment-id:441184967 --> @tonioo commented on GitHub (Nov 23, 2018): @Arvedui Thank you for the answer :+1:
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1273
No description provided.