xampp mysql 数据库设置了 utf-8; 字段也是utf-8; 但是中文乱码。其实还需要在my.ini 中分别设置几个地方才行。 [client] default_character_set = utf8 [mysqld] character-set-server = utf8 collation-server = utf8_general_ci [mysql] default_character_set = utf8
2022-08-26 21:14:28
xampp mysql 数据库设置了 utf-8; 字段也是utf-8; 但是中文乱码。其实还需要在my.ini 中分别设置几个地方才行。 [client] default_character_set = utf8 [mysqld] character-set-server = utf8 collation-server = utf8_general_ci [mysql] default_character_set = utf8