Why does MySQL use latin1_swedish_ci as the default?

前端 未结 4 1704
执笔经年
执笔经年 2020-12-25 09:25

Does anyone know why latin1_swedish is the default for MySQL. It would seem to me that UTF-8 would be more compatible right?

Defaults are usually chosen because the

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-25 10:29

    Most strange features of this kind are historic. They did it like that long time ago, and now they can't change it without breaking some app depending on that behavior.

    Perhaps UTF8 wasn't popular then. Or perhaps MySQL didn't support charsets where multiple bytes encode on character then.

提交回复
热议问题