问题
is there a way to convert utf8mb4 characters to utf8 to store in a utf8 mysql database? and then when we get it from database, restore it to utf8mb4.
goal is storing phone smiley in a utf8 database without having to change database encoding.
for example replace first byte of those characters to a special byte and then in restoration change it back?
回答1:
ok what I did was using BLOB type for that column..
来源:https://stackoverflow.com/questions/18273120/convert-utf8mb4-characters-to-utf8-in-php