X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/7769b0a8236575dddae43ec2f4f94d38a22e4747..158628553f39cf4508a54021af71bc4836e893e8:/lib/lib.php diff --git a/lib/lib.php b/lib/lib.php index df65848d..48fba5ac 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -178,7 +178,7 @@ { $aResult = array(array(join(' ',$aWords))); $sFirstToken = ''; - if ($iDepth < 8) { + if ($iDepth < 7) { while(sizeof($aWords) > 1) { $sWord = array_shift($aWords); @@ -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'])) {