02、判断字符编码与转换编码$b = mb_detect_encoding($params['data']);$c = mb_convert_encoding($params['data'], "UTF-8","GBK");