字符转码

mb_convert_encoding($message, 'UTF-8', mb_detect_encoding($message, array("ASCII",'UTF-8',"GB2312","GBK",'BIG5')))

 json中文字符转换:

json_encode($arr,JSON_UNESCAPED_UNICODE)

 

posted @ 2019-05-10 14:10  谦逊的铅笔  阅读(235)  评论(0编辑  收藏  举报