PHP日常问题 2017-07-06 本文已影响14人 Captain_tu json_encode中文转码unicode问题 php5.4以后,json新增选项JSON_UNESCAPED_UNICODE,可以在encode时,不将中文转码为unicode json_encode(["name":"你好,世界"], JSON_UNESCAPED_UNICODE)