X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6b55ab5581a3f6541d16fb7544ce8fd57dc2a673..d485aef7019206bc02167d391c91cb1aa47fe6dc:/lib-php/Geocode.php diff --git a/lib-php/Geocode.php b/lib-php/Geocode.php index cd8b6edd..20edd9a5 100644 --- a/lib-php/Geocode.php +++ b/lib-php/Geocode.php @@ -874,7 +874,7 @@ class Geocode $iCountWords = 0; $sAddress = $aResult['langaddress']; foreach ($aRecheckWords as $i => $sWord) { - if (stripos($sAddress, $sWord)!==false) { + if (grapheme_stripos($sAddress, $sWord)!==false) { $iCountWords++; if (preg_match('/(^|,)\s*'.preg_quote($sWord, '/').'\s*(,|$)/', $sAddress)) { $iCountWords += 0.1;