Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Actually, it is not necessary to “fix” (although in terms of perfectionism, I understand you well). These are legitimate JS strings that are displayed correctly in the browser. The amount of data, however, is larger. But, on the other hand, Gzip compression minimizes this factor. ;-)
You can also do this:
$json = defined('JSON_UNESCAPED_UNICODE')
? json_encode($data, JSON_UNESCAPED_UNICODE)
: json_encode($data);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question