php 中文字符集修改成UTF8编码

$t = mb_detect_encoding($a,["GB18030", "UTF-8","GB2312","GBK","BIG5"]);
if($t !== false && $t != "UTF-8"){
    $a = mb_convert_encoding($a, 'UTF-8', $t);
}
此条目发表在php, php 优化, 基础分类目录,贴了, , , , 标签。将固定链接加入收藏夹。