? How is this type of icon stored in the database?

?

Mar.20,2021

the universal mysql character set is: utf8_general_ci. Utf8 can only store 3 bytes of characters. While emoticons are usually 4 bytes, you need to use utf8mb4 , such as utf8mb4_general_ci.

if from a program point of view, you need to do mapping at the front end, such as the string [train] can be rendered as? The look on his face. And what you save in mysql is [train] , so that mysql doesn't need to be changed. Many websites do this. After all, utf8mb4 appears late

.

mysql utf8mb4 Encoding

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb08ca-69a56.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb08ca-69a56.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?