german umlauts
Posted by:
Sebastian
Date: June 25, 2004 11:48PM
By default the original Search-Prompt of K-Meleon eats german umlauts (äöüÄÖÜß) and outputs a "?".
With this Macro, you can search with german umlauts:
# search with german special characters
search_with_google{
$query = prompt("Enter Search Query:", "Search", "");
$query == "" ? "" : macros(go);
}
go{
$query = gsub("ä", "%C3%A4", $query);
$query = gsub("ö", "%C3%B6", $query);
$query = gsub("ü", "%C3%BC", $query);
$query = gsub("ß", "%C3%9F", $query);
$query = gsub("Ä", "%C3%84", $query);
$query = gsub("Ö", "%C3%96", $query);
$query = gsub("Ü", "%C3%9C", $query);
open($search. $query);
}
and in Toolbars.cfg change this:
Search {
macros(search_with_google)
Search with Google
toolhot.bmp[5]
toolhot.bmp[5]
toolhot.bmp[5]
}