php判断字符串编码函数 作者: phper 时间: 2013-04-18 分类: php与数据库 没有评论 mb_detect_encoding()($str);//判断字符串是什么编码if ($tag === mb_convert_encoding(mb_convert_encoding($tag, "GB2312", "UTF-8"), "UTF-8", "GB2312")) { 阅读全文