标签:utf8转换 html gb2312 icon 字符串 hang utf-8 bsp http
<?php header("Content-type:text/html;charset=UTF-8"); echo $str= ‘你好,这里是utf8转gbk!‘; echo ‘<br />‘; echo iconv("UTF-8","gbk//TRANSLIT",$str); //将字符串的编码从UTF-8转到GB2312
<?php header("Content-type:text/html;charset=GB2312"); echo $str= ‘你好,这里是gbk转utf8!‘; echo ‘<br />‘; echo iconv(‘GB2312‘, ‘UTF-8‘, $str); //将字符串的编码从GB2312转到UTF-8
转: https://www.cnblogs.com/zhangqie/p/8256876.html
标签:utf8转换 html gb2312 icon 字符串 hang utf-8 bsp http
原文地址:https://www.cnblogs.com/fps2tao/p/12358263.html