首先是GBK转UTF-8
$data=iconv("GBK","UTF-8//IGNORE",$data);
然后是UTF-8转GBK
$content=iconv("UTF-8","GBK//IGNORE",$content);
发布者:彬彬笔记,转载请注明出处:https://www.binbinbiji.com/php/2163.html
首先是GBK转UTF-8
$data=iconv("GBK","UTF-8//IGNORE",$data);
然后是UTF-8转GBK
$content=iconv("UTF-8","GBK//IGNORE",$content);
发布者:彬彬笔记,转载请注明出处:https://www.binbinbiji.com/php/2163.html