W
W
WebDev2021-07-16 10:06:47
JSON
WebDev, 2021-07-16 10:06:47

What needs to be done so that the Cyrillic alphabet is displayed normally?

I received the project and I just can not understand what is the reason. The project is a symfony api backend. So this API returns json and if it contains Cyrillic, then it is returned in this form. That is, if I simply return a string in Cyrillic from the server, then it will return in this form.
60f12f885503d668673060.png
The database also stores Cyrillic in this form.
Is this some kind of setting? Is there an encoding somewhere? Tell me how to make the Cyrillic alphabet display normally.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Spartak (Web-StyleStudio), 2021-07-16
@Spartak-2205

Tell me how to make the Cyrillic alphabet display normally

Use json_encode with JSON_UNESCAPED_UNICODE flag

S
scottparker, 2021-07-16
@scottparker

so write json_decode and you will be happy

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question