E
E
Enlik Farhat2021-06-30 08:14:13
PHP
Enlik Farhat, 2021-06-30 08:14:13

What's the encoding?

Good afternoon,
What is the name of this encoding and how can I edit it?

"id":1,"title":"\u041c\u0435\u0436\u0434\u0443\u043d\u0430\u0440\u043e\u0434\u043d\u044b\u0439 \u0434\u0435\u043d\u044c \u0441\u0435\u043c\u044c\u0438","description":"\u0427\u0435\u043b\u043b\u0435\u043d\u0434\u0436 #\u041c\u043e\u044f\u0421\u0435\u043c\u044c\u044f_\u0421\u043a\u0432\u043e\u0437\u044c\u0433\u043e\u0434\u0430. \u0421\u0435\u043c\u044c\u044f\u043c \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0440\u0435\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u0440\u043e\u0432\u0430\u0442\u044c

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2021-06-30
@AlisherBekenov

This is plain text with unicode characters

$json = '{"id":1,"title":"\u041c\u0435\u0436\u0434\u0443\u043d\u0430\u0440\u043e\u0434\u043d\u044b\u0439 \u0434\u0435\u043d\u044c \u0441\u0435\u043c\u044c\u0438","description":"\u0427\u0435\u043b\u043b\u0435\u043d\u0434\u0436 #\u041c\u043e\u044f\u0421\u0435\u043c\u044c\u044f_\u0421\u043a\u0432\u043e\u0437\u044c\u0433\u043e\u0434\u0430. \u0421\u0435\u043c\u044c\u044f\u043c \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0440\u0435\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u0440\u043e\u0432\u0430\u0442\u044c"}';
$data = json_decode($json);
var_dump($data);

/* object(stdClass)#1 (3) {
  ["id"]=>
  int(1)
  ["title"]=>
  string(46) "Международный день семьи"
  ["description"]=>
  string(125) "Челлендж #МояСемья_Сквозьгода. Семьям предлагается реконструровать"
} */

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question