K-Meleon

KMeleonWiki > Resources > MacroLibrary > MacroLibrary2 > german umlauts



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]
}
K-Meleon

(c) 2000-2010 kmeleonbrowser.org. All rights reserved.
design by splif.