php设置gb2312的方法:1、php设置输出头为“header(“content-type: text/html; charset=gb2312")”;2、将静态页面添加“charset=gb2312”。
本文操作环境:Windows7系统、PHP7.1版,DELL G3电脑
php怎么设置gb2312?
如果欲使用gb2312编码,那么php要输出头:header(“Content-Type: text/html; charset=gb2312"),静态页面添加锛
以上就是php怎么设置 gb2312的详细内容,更多请关注php中文网其它相关文章!
Copyright 2014-2024 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号