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

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

No files matched your search

+2
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);
}
}
?>