PHP – Unicode Problem conversion in json output

Tags: ,

The outputted string in json is:

 u062eu0637u0627u06cc u0627u062du0631u0627u0632 u0647u0648u06ccu062a

I tried json_decode with and without JSON_UNESCAPED_UNICODE but no luck. Something like:

echo json_decode('u062eu0637u0627u06cc u0627u062du0631u0627u0632 u0647u0648u06ccu062a');

It returns nothing!


Thanks to Magnus Eriksson’s answer, it must be something like:

print_r (json_decode("...json output..."));

Source: stackoverflow