有php输出的页要使用header函数声明编码PHP开头加上如下代码header("Content-Type:text/html; charset=UTF-8"); 同时文件也要另存为utf-8格式~~GBK同理