phpcms get乱码怎么办?
PHP接收GET中文参数乱码的原因及解决方案
方案1:
$str = iconv("gb2312","utf-8",$str);
方案2:
mb_convert_encoding($str, "utf-8", "gb2312");
原创文章,作者:HUVLW,如若转载,请注明出处:http://www.wangzhanshi.com/n/17402.html
phpcms get乱码怎么办?
PHP接收GET中文参数乱码的原因及解决方案
方案1:
$str = iconv("gb2312","utf-8",$str);
方案2:
mb_convert_encoding($str, "utf-8", "gb2312");
原创文章,作者:HUVLW,如若转载,请注明出处:http://www.wangzhanshi.com/n/17402.html