workaround for kelondro Umlaut-Problem.

his will only fix öäüÖÄÜß ...just do not use other special chars ;-)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1621 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 19 years ago
parent fb5c387368
commit addc802cf3

@ -458,6 +458,9 @@ public class bookmarksDB {
private Map mem;
public Tag(String name, Map map){
tagName=name.toLowerCase();
// TODO: This is only a workaround. with many other special chars, this will not work
tagName=tagName.replaceAll("ä", "ae").replaceAll("ö", "oe").replaceAll("ü", "ue")
.replaceAll("Ä", "Ae").replaceAll("Ö", "Oe").replaceAll("Ü", "Ue").replaceAll("ß", "ss");
mem=map;
if(!name.equals(tagName)){
mem.put(TAG_FRIENDLY_NAME, name);
@ -465,6 +468,9 @@ public class bookmarksDB {
}
public Tag(String name, Vector entries){
tagName=name.toLowerCase();
//TODO: This is only a workaround. with many other special chars, this will not work
tagName=tagName.replaceAll("ä", "ae").replaceAll("ö", "oe").replaceAll("ü", "ue")
.replaceAll("Ä", "Ae").replaceAll("Ö", "Oe").replaceAll("Ü", "Ue").replaceAll("ß", "ss");
mem=new HashMap();
mem.put(URL_HASHES, listManager.vector2string(entries));
if(!name.equals(tagName)){
@ -473,6 +479,9 @@ public class bookmarksDB {
}
public Tag(String name){
tagName=name.toLowerCase();
// TODO: This is only a workaround. with many other special chars, this will not work
tagName=tagName.replaceAll("ä", "ae").replaceAll("ö", "oe").replaceAll("ü", "ue")
.replaceAll("Ä", "Ae").replaceAll("Ö", "Oe").replaceAll("Ü", "Ue").replaceAll("ß", "ss");
mem=new HashMap();
mem.put(URL_HASHES, "");
if(!name.equals(tagName)){

Loading…
Cancel
Save