在做网页采集的时候 发现采的数据乱码本来是平台概览 变成了1.平尿¦è§
用 mb_detect_encoding($html, array("ASCII","GB2312","GBK","UTF-8"))查出编码是CP936
用了网上的mb_convert_encoding($html, "UTF-8", "CP936");
iconv('CP936', 'UTF-8//IGNORE', $html);
都失败 不知道有没有好办法 卡在这好久了!
收起
试一下mb_convert_encoding($html, "CP936","UTF-8");
报告相同问题?