$fullFileName = mb_convert_encoding( $fullFileName, 'UTF-8', 'UTF-8,GBK,GB2312,BIG5' );
$fullFileName = iconv('GBK', 'UTF-8//TRANSLIT//IGNORE', $fullFileName);

优先使用第一种, 第二种失败的话会报错notice级别错误 iconv(): Unknown error (22)

标签: none

添加新评论