How to make MySQL handle UTF-8 properly

前端 未结 14 2868
被撕碎了的回忆
被撕碎了的回忆 2020-11-22 06:38

One of the responses to a question I asked yesterday suggested that I should make sure my database can handle UTF-8 characters correctly. How I can do this with MySQL?

14条回答
  •  面向向阳花
    2020-11-22 07:20

    MySQL 4.1 and above has a default character set that it calls utf8 but which is actually only a subset of UTF-8 (allows only three-byte characters and smaller).

    Use utf8mb4 as your charset if you want "full" UTF-8.

提交回复
热议问题