S
S
Stalker_darkway2015-12-16 04:53:55
PHP
Stalker_darkway, 2015-12-16 04:53:55

How to put the desired encoding in the AJAX cart?

Hello.
I send an AJAX request, I get a response like this (Russian letters are displayed incorrectly, English and numbers are correct).
\u0418\u043d\u0432\u0435\u0440\u0442\u043e\u0440 \u0441\u0432\u0430\u0440\u043e\u0447\u043d\u044b\u0439 Tell me

how to fix it. Thank you very much in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2015-12-16
@hronik87

decodeURIComponent('\u0418\u043d\u0432\u0435\u0440\u0442\u043e\u0440 \u0441\u0432\u0430\u0440\u043e\u0447\u043d\u044b\u0439')
"Инвертор сварочный"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question