X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/ec0d916db5d669907a401480a980980bccce09c1..158628553f39cf4508a54021af71bc4836e893e8:/lib/lib.php?ds=inline diff --git a/lib/lib.php b/lib/lib.php index b8f8d8b0..48fba5ac 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'])) {