1、php页面utf8乱码解决办法:
在文件头部添加:
header("Content-Type:text/html;charset=UTF-8");
2、mysql文字乱码解决办法
mysql入口文件加入
$db->query("set names utf8");