fix: API, remove extra utf8 encoding for json function (#6118)

This commit is contained in:
Neil Lathwood
2017-03-08 04:08:28 +00:00
committed by Tony Murray
parent 58442e0a75
commit 8f96b14975

View File

@@ -1129,9 +1129,6 @@ if (!defined('JSON_UNESCAPED_UNICODE')) {
function _json_encode($data, $options = 448)
{
array_walk_recursive($data, function (&$val) {
$val = utf8_encode($val);
});
if (version_compare(PHP_VERSION, '5.4', '>=')) {
return json_encode($data, $options);
} else {