我已经试了下面多种方式,要么是乱码,要么就报错。$strInput = "李奡 ad ss ";//输出正常,无乱码echo $strInput;//报错:iconv(): Unknown errorecho iconv('utf-8','gb2312',$strInput);//乱码echo iconv('utf-8','gb2312//IGNORE',$strInput);//乱码echo iconv('utf-8','GBK',$strInput);//乱码echo mb_convert_encoding($strInput,"GBK","UTF-8");//乱码echo mb_convert_encoding($strInput,"GBK");
添加回答
举报
0/150
提交
取消