编码转换

 $encoding  = mb_detect_encoding($string, array("ASCII",'UTF-8′,"GB2312′,"GBK",'BIG5′)); 

iconv

原文地址:https://www.cnblogs.com/examine/p/5464472.html