Non Latin Characters & ouch

后端 未结 2 1122
予麋鹿
予麋鹿 2021-01-07 05:33

I\'m getting to know Cake PHP, which has unearthed a general question about best practice in terms of PHP / MySQL character set stuff, which I\'m hoping can be answered here

2条回答
  •  一生所求
    2021-01-07 06:10

    Make sure the MySQL connection is set to UTF-8 while importing the data. The collation is only used for sorting and comparison, not for saving data.

    You can set the charset of the connection using SET NAMES 'utf-8'; in the beginning of your SQL file.

提交回复
热议问题