Skip to content
Advertisement

PHP – Unicode Problem conversion in json output

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!

Advertisement

Answer

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

print_r (json_decode("...json output..."));
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement