PHP json encode utf-8 변경 json 5.3 이하로는 json decode 시 JSON_UNESCAPED_UNICODE 를 사용할 수 없다. 검색질의 결과 이런게 있네. preg_replace("/\\\\u([a-f0-9]{4})/e", "iconv('UCS-4LE','UTF-8',pack('V', hexdec('U$1')))", json_encode($msg, JSON_UNESCAPED_SLASHES)) 일단은 잘 되고 있음. 하하 JSON_UNESCAPED_SLASHES 도 5.4부터. 더보기 이전 1 다음