//判断编码复制代码 代码如下:$encode = mb_detect_encoding($q, array('gb2312','gbk','utf-8'));echo $encode."";if($encode=="gb2312"){ $q = iconv("gbk","utf-8",$q);}else if($encode=="gbk"){ $q = iconv("gbk","utf-8",$q);}else if($encode=="euc-cn"){ $q = iconv(
时间:2025-01-15 | 阅读:351