iconv 解决utf-8和gb2312编码转换问题

$content = iconv("utf-8","gb2312//IGNORE",$content); //utf-8转gbk
$content = iconv("gb2312","utf-8//IGNORE",$content); //gb2312换为utf-8
原文地址:https://www.cnblogs.com/lh460795/p/6646348.html