解决PHP乱码 如果你的PHP页面出现了乱码,之需要在页面的开始处加入下面代码就可以了。 <?php header("content-type:text/html;charset=utf-8"); //设置编码 ?>