[Web] Fix invalid encodings with json_encode, fixes #3847

This commit is contained in:
andryyy
2020-11-09 14:42:26 +01:00
parent 5e1ae49477
commit 6d56ef6435
4 changed files with 60 additions and 8 deletions

View File

@@ -197,7 +197,9 @@ elseif (!empty($_GET['id']) && ctype_alnum($_GET['id'])) {
exit;
}
}
$data = mb_convert_encoding($data, "UTF-8", "auto");
echo json_encode($data);
}
}
?>