tp5读取数据库乱码怎么解决

浏览:603 发布日期:2018/10/03 分类:求助交流
数据库全部都是utf8了,还是乱码有点懵
mysql> show variables like "%char%";
+--------------------------+-----------------------------------------+
| Variable_name | Value |
+--------------------------+-----------------------------------------+
| character_set_client | utf8 |
| character_set_connection | utf8 |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | utf8 |
| character_set_server | utf8 |
| character_set_system | utf8 |
| character_sets_dir | D:\huanjing\xampp\mysql\share\charsets\ |
+--------------------------+-----------------------------------------+
8 rows in set (0.03 sec)

mysql>
表也是utf8,代码也是utf8编码的,查询后json返回会乱码
最佳答案
评论( 相关
后面还有条评论,点击查看>>