• 每天进步一点点!

文章分类

推荐网站

常用手册

PHP输出UTF8编码和GB2312编码【原创】

<<返回

2014-06-04 07:23:43

//纯文本的utf8编码
header("Content-Type: text/plain;charset=utf8");

//html的utf8编码
header("Content-Type: text/html;charset=utf8");

//纯文本的gb2312编码
header("Content-Type: text/plain;charset=gb2312");

//html的gb2312编码
header("Content-Type: text/html;charset=gb2312");

 

文章评论

  • 暂无评论

发表评论

昵称:

内容:

发表评论