In MySQL, don’t use “utf8”, use “utf8mb4” (2016)
1–10 of 170 posts
Re: In MySQL, don’t use “utf8”, use “utf8mb4” (2016)
#2Since then, I always set every new MySQL database (and even double check the tables) to be 'utf8mb4' even long after the original lessons and pain have been forgotten.
Re: In MySQL, don’t use “utf8”, use “utf8mb4” (2016)
#3Anyway, each time you start a new project that is supposed to work correctly with multi-language data, please set up evil strings test suite as early as you can and do not assume that any of the 3rd party software that you're using won't break down.
Re: In MySQL, don’t use “utf8”, use “utf8mb4” (2016)
#4The default for MySQL 8.0 (current GA) is utf8mb4. I also recommend reading this introduction post here: http://mysqlserverteam.com/sushi-beer-an-introduction-of-utf...
Re: In MySQL, don’t use “utf8”, use “utf8mb4” (2016)
#5It digs a little bit deeper on the MySQL side (and it's from 2012 btw)
Re: In MySQL, don’t use “utf8”, use “utf8mb4” (2016)
#6Re: In MySQL, don’t use “utf8”, use “utf8mb4” (2016)
#7Oh, I love these kind of Unicode bugs. Also, please don't use utf16 in C# - although it advertises as using utf16, all of it's built-in string processing actually works on code units, not Unicode code points and breaks down on surrogate pairs. Anyway, each time you start a new project that is supposed to work correctly with multi-language data, please set up evil strings test suite as early as you can and do not assu…
Re: In MySQL, don’t use “utf8”, use “utf8mb4” (2016)
#8I'd be very happy to ask the DB for (say) a UTF-8 string of up-to 80 bytes. That means I could store 80 ASCII characters, 40 two-byte characters, 20 four-byte characters or some mixture as I wish.
Re: In MySQL, don’t use “utf8”, use “utf8mb4” (2016)
#9Re: In MySQL, don’t use “utf8”, use “utf8mb4” (2016)
#10This is stupid. There are pros and cons to every database. For example, MySQL allows you to set a trigger on an op, PostgreSQL requires you to write a function first.