PHP如何将gb2312网页内的中文转换成utf

2025-04-24 10:34:36
推荐回答(1个)
回答1:

$instr = '测试';
// GBK转UTF-8
$outstr = iconv('GBK','UTF-8',$instr);
echo $outstr

?>