Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'It's umlaut-safe now.' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
It's umlaut-safe now.
Authored by: Baumi on May 21, '03 09:47:35PM
Here's what to do to make the script work with umlauts:

Blelow the line

$q = urldecode($_GET['q']);

add this line:

$q = utf8_decode($q);

and replace the line

header("Location: http://www.google.com/search?q=".$_GET['q']."&ie=UTF-8&oe=UTF-8");

with

header("Location: http://www.google.com/search?q=".urlencode($q)."&ie=ISO-8859-1");

That's all, folks. :-)

Baumi

[ Reply to This | # ]