]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/search.php
return a marginally better error message when query string is not in UTF-8,
[nominatim.git] / website / search.php
index 7169c829abba66041c1d7a31c6940e418499be9c..f4b9b9248236de26b0ddc8e234d3a03d9862892a 100755 (executable)
                                $aPhrase = $oDB->getRow("select make_standard_name('".pg_escape_string($sPhrase)."') as string");
                                if (PEAR::isError($aPhrase))
                                {
-                                       var_dump($aPhrase);
+                                       echo "Illegal query string (not an UTF-8 string): ".$sPhrase;
+                                       if (CONST_Debug) var_dump($aPhrase);
                                        exit;
                                }
                                if (trim($aPhrase['string']))
                                }
                        }
                        if ($bSuggestion) $sSuggestion = join(', ',$aSuggestion);
-/*
+
                        // Try and calculate GB postcodes we might be missing
                        foreach($aTokens as $sToken)
                        {
                                        }
                                }
                        }
-*/
 
                        foreach($aTokens as $sToken)
                        {