用iconv转换
<?php
$result = iconv('UTF-16LE' , 'UTF-8//IGNORE' , $str);
if (false === $result)
{
throw new Exception('无法转换');
}
?>
网友回复
用iconv转换
<?php
$result = iconv('UTF-16LE' , 'UTF-8//IGNORE' , $str);
if (false === $result)
{
throw new Exception('无法转换');
}
?>
网友回复