diff --git a/lib/Geocode.php b/lib/Geocode.php index ae82498f..ec3ce13b 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -772,6 +772,9 @@ class Geocode } $sQuery = $this->sQuery; + if (!preg_match('//u', $sQuery)) { + userError("Query string is not UTF-8 encoded."); + } // Conflicts between US state abreviations and various words for 'the' in different languages if (isset($this->aLangPrefOrder['name:en'])) {