PHP - json_encode show chars \u0 (UTF-8)
Hi,
if I use PHP json_encode like
RAW data:
Hi,
add the JSON_UNESCAPED_UNICODE parameter to php json_encode () as follows:
if I use PHP json_encode like
json_encode($api->data)
then I have escaped characters in the data in the form \u0 etc. It's weird, I have everything UTF-8. Can you advise what to do with it? ThanksRAW data:
{"cee":" okoln\u00ed z\u00e1stavbu tvo\u0159\u00ed hlavn\u011b rekrea\u010dn\u00ed chaty.\r\nKomplex osady je situovan\u00fd u pra\u017esk\u00e9ho silni\u010dn\u00edho okruhu (v \u010d\u00e1sti \u00faseku s tunelem - Lochkovsk\u00fd\r\ntunel). Centrum Prahy je ve vzd\u00e1lenosti cca 11 km","cadastral_office":"Velk\u00e1 Chuchle","bocock":"\u00dadaj nen\u00ed dostupn\u00fd"}}}
REPLY
Hi,
add the JSON_UNESCAPED_UNICODE parameter to php json_encode () as follows:
json_encode($api->data, JSON_UNESCAPED_UNICODE)