PHP开发实例大全(提高卷) 中文完整pdf扫描版[244MB]
$encode = mb_detect_encoding($username, array('ASCII','UTF-8','GB2312','GBK','BIG5')); if ($encode != "GBK"){ //如果不是gbk则转为GBK $username = iconv($encode,'gbk',$username); }
转载请注明:谷谷点程序 » php检测字符串的编码
$encode = mb_detect_encoding($username, array('ASCII','UTF-8','GB2312','GBK','BIG5')); if ($encode != "GBK"){ //如果不是gbk则转为GBK $username = iconv($encode,'gbk',$username); }
转载请注明:谷谷点程序 » php检测字符串的编码