解决mysql 写入中文读出乱码的问题
show VARIABLES like 'character_%';
先查看一下,各个设置的编码是否是 utf8
set character_set_client=utf8;
set character_set_server=utf8;
set character_set_connection=utf8;
show VARIABLES like 'character_%';
先查看一下,各个设置的编码是否是 utf8
set character_set_client=utf8;
set character_set_server=utf8;
set character_set_connection=utf8;