Adam Hooper personal blog
In MySQL, use “utf8mb4” instead of “utf8” (2016)
Today’s bug: I tried to store a UTF-8 string in a MariaDB “utf8”-encoded database, and Rails raised a bizarre error:
- Points
- 643
- HN comments
- 511
- Submissions
- 2
- Cited by
- 0 commenters
Databases & DataSoftware Engineering2022
On Hacker News
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Jan 12, 2022 | In MySQL, use “utf8mb4” instead of “utf8” (2016) by goranmoomin | 643 | 351 |
| Jun 14, 2018 | In MySQL, don’t use “utf8”, use “utf8mb4” (2016) by mariuz | 244 | 160 |