When to use utf-8 and when to use latin1 in MySQL?

后端 未结 8 1670
暖寄归人
暖寄归人 2021-02-13 21:56

I know that MySQL has default of latin1 encoding and apparently it takes 1 byte to store a character in latin1 and 3 bytes to store a character in

8条回答
  •  一生所求
    2021-02-13 22:21

    We did an application using Latin because it was the default. But later on we had to change everything to UTF because of spanish characters, not incredible difficult but no point having to change things unnecessarily.

    So short answer is just go with UTF-8 from the beginning, it will save you trouble later on.

提交回复
热议问题