mysql: Chinese character display problem question mark

mysql version 5.5.3 from the beginning, is supported utf8 byte 4, encoding the name utf8mb4 (mb4 mean max bytes 4), up to 4 bytes of storage with such a character encoding.

To demonstrate this problem, you can perform the following sql:

select * from
information_schema.CHARACTER_SETS
where CHARACTER_SET_NAME like 'utf8%'

The results are shown:

Therefore, to solve unusual occurrence of the above, it is necessary to use utf8mb4 coding.

 

Guess you like

Origin www.cnblogs.com/Miracle-boy/p/11829163.html