首先是GBK轉UTF-8
$data=iconv("GBK","UTF-8//IGNORE",$data);
然後是UTF-8轉GBK
$content=iconv("UTF-8","GBK//IGNORE",$content);
發布者:彬彬筆記,轉載請註明出處:https://www.binbinbiji.com/zh-hant/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/zh-hant/php/2163.html