PaulSpr
PaulSpr

Reputation: 85

Can I safely use utf8 tables and columns in utf8mb4 mysql database?

I want at least some columns in my database to use utf8mb4 because they have to store text that includes emoji. I've been testing some stuff locally for a fairly large project and I've followed the steps in this guide (https://mathiasbynens.be/notes/mysql-utf8mb4) and did the following:

Working with emoji for these columns is now possible.

I've read that utf8mb4 is fully compatible with utf8, and from what I've tested everything seems fine. The question is: Is this safe to do?

Upvotes: 3

Views: 538

Answers (1)

O. Jones
O. Jones

Reputation: 108676

I've read that utf8mb4 is fully compatible with utf8, and from what I've tested everything seems fine. The question is: Is [mixing utf8 and utf8mb4 in the same database] safe to do?

Yes.

Upvotes: 1

Related Questions