iconv(): Detected an illegal character in input string 错误解决方法
//转码 function iconv_gbk_to_uft8($string){ $encode = mb_detect_encoding($string,array("ASCII",'UTF-8',"GB2312","GBK",'BIG5')); //获取字符串的编码 return iconv($encode, "UTF-8",$string);
}
iconv(): Detected an illegal character in input string 错误解决方法
//转码 function iconv_gbk_to_uft8($string){ $encode = mb_detect_encoding($string,array("ASCII",'UTF-8',"GB2312","GBK",'BIG5')); //获取字符串的编码 return iconv($encode, "UTF-8",$string);
}