Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[Mail/Drafts] 4-byte emoji in a composed message breaks draft saving #449
For sure. At the moment, full
The stopgap fix for drafts mirrors what we're doing with message content -- we just treat it as binary content and don't enforce any charset.
I'm all for using utf8mb4 as a default, but we also need to make sure people aren't using the MyISAM storage engine anymore, since it has a much lower key length limit when using text-based fields in compound keys (1000 bytes vs ~3000 for InnoDB).
That doesn't affect most of our schema, but it does come up. There are also field limits like
If we had started the project today, we wouldn't have even made the charset configurable, and we would have just used utf8mb4 everywhere. It's a shame MySQL's utf8 default has always been a misleading 3-bytes.
We're getting closer to being able to do that.