iconv("GB2312","UTF-8",$text);修改为以下其中一种:1.iconv("UTF-8","GBK",$text);
2.iconv("UTF-8","GB2312//IGNORE",$data);//IGNORE表示忽略不能转换的字符
3.iconv('utf-8',"gb2312//TRANSLIT",file_get_contents($filepath));//TRANSLIT表示如果在目标编码中找不到与源编码相匹配的字符会选择相似的字符进行转换