Add utf8mb4 charset hint to database documentation#315
Conversation
utf8 is an alias for utf8mb3 in MySQL and MariaDB. Some emojis use 4-bytes, so recommend utf8mb4.
|
Is there any reason not to also use utf8mb4 as the default in secrets.php? |
|
SQLite, PostgreSQL, and others handles 2–4 bytes from So … yeah. Do you want to default to MySQL-legacy-workaround or the guys who’ve followed the Unicode standard without introducing issues for their users? The ambiguity is why I put it in the documentation. It’s a common issue and you might end up with breaking multibyte emojis. But that’s kind of what you get when choosing MySQL/MariaDB. |
utf8 is an alias for utf8mb3 in MySQL and MariaDB.
Some emojis use 4-bytes, so recommend utf8mb4.