php的header来定义一个php页面为utf编码或GBK编码 

php页面为utf编码
header("Content-type: text/html; charset=utf-8");

php页面为gbk编码
header("Content-type: text/html; charset=gb2312");

php页面为big5编码
header("Content-type: text/html; charset=big5");

通常情况以上代码放在php页面的首页

相关文章: