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页面的首页
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页面的首页
本文标题:php声明页面编码
本文链接:https://www.haomeiwen.com/subject/gwivfftx.html
网友评论