I have a JSON array that saves some accented characters in it, a value could be üna
. Saving this as JSON i use json_encode($array, JSON_UNESCAPED_UNICODE);
which works correctly, however when trying to display on the page with json_decode()
it will not show because of the accent.
$arr = json_decode($array, true);
print_r($arr);
I have tried adding the JSON_UNESCAPED_UNICODE
to that aswell as adding a UTF-8 header line but nothing will print out.