1) 使用 <meta http-equiv="content-type" content="text/html; charset=xxx"> 标签设置页面编码
2) 在php程序中使用header("content-type:text/html; charset=xxx");函数来设置页面编码
3) 在Apache的配置文件httpd.conf中修改AddDefaultCharset设置页面编码
以上三中方法的优先顺序:
header("content-type:text/html; charset=xxx")
AddDefaultCharset xxx
<meta http-equiv="content-type" content="text/html; charset=xxx">


