PHP - Unicode Problem conversion in json output
Get the solution ↓↓↓The outputted string in json is:
\u062e\u0637\u0627\u06cc \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a
I triedjson_decode
with and withoutJSON_UNESCAPED_UNICODE
but no luck. Something like:
echo json_decode('\u062e\u0637\u0627\u06cc \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a');
It returns nothing!
Answer
Solution:
Thanks to Magnus Eriksson's answer, it must be something like:
print_r (json_decode("...json output..."));
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: trying to access array offset on value of type bool
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.