Can't insert Chinese character into MySQL

后端 未结 4 1713
闹比i
闹比i 2020-11-28 13:23

The cookie is encoded using the big5 set, and it cannot insert into MySQL. Could you help me to solve this problem?

Fields: username is eng, date1

4条回答
  •  没有蜡笔的小新
    2020-11-28 13:50

    For Chinese, you really need utf8mb4, not utf8. This is because of a small number of Chinese characters that require 4-byte UTF8 characters, which MySQL's utf8 does not support.

提交回复
热议问题