Utf8_general_ci or utf8mb4 or…?

后端 未结 2 1970
时光取名叫无心
时光取名叫无心 2020-12-23 11:59

utf16 or utf32? I\'m trying to store content in a lot of languages. Some of the languages use double-wide fonts (for example, Japanese fonts are frequently twice as wide a

2条回答
  •  孤城傲影
    2020-12-23 12:18

    utf8mb4 is the best.

    utf8mb4 supports 4 bytes per character compared to utf8's 3 bytes per character, so it covers a wider range of uses without error.

    With utf8mb4 you can support emojis, for example. If you try to insert an emoji in an unsupported character set you will get errors.

    utf8mb4 is the more modern version of the 2 and will replace the older version eventually.

提交回复
热议问题