X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/7769b0a8236575dddae43ec2f4f94d38a22e4747..a5a0e1dd0b08321f473ac5ebf934cac8c39462d6:/lib/lib.php?ds=sidebyside diff --git a/lib/lib.php b/lib/lib.php index df65848d..2f94c25c 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -671,7 +671,10 @@ function javascript_renderData($xVal) { header("Access-Control-Allow-Origin: *"); - $jsonout = json_encode($xVal); + $iOptions = 0; + if (defined('PHP_VERSION_ID') && PHP_VERSION_ID > 50400) + $iOptions = JSON_UNESCAPED_UNICODE; + $jsonout = json_encode($xVal, $iOptions); if( ! isset($_GET['json_callback'])) {