$fileType = mb_detect_encoding($strData , array('UTF-8','GBK','LATIN1','BIG5','CP936')) ;//可以在此处添加编码格式
$str = "";
if( $fileType != 'UTF-8'){
$str = mb_convert_encoding($strData ,'UTF-8' , $fileType);
}
posted on 2015-09-29 11:45  Sign_Black  阅读(272)  评论(0编辑  收藏  举报