Answer the question
In order to leave comments, you need to log in
How to display JSON with Cyrillic in PHP?
Typical json:
{
"id": 1,
"name": "Жора"
}
<?= json_encode(['id' => 1, "name" => "Женя"], JSON_PRETTY_PRINT) ?>
{
"id": 1,
"name": "\u0416\u0435\u043d\u044f"
}
Answer the question
In order to leave comments, you need to log in
<?= json_encode(['id' => 1, "name" => "Женя"], JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT) ?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question