diff src/java/de/intevation/mxd/utils/MapScriptUtils.java @ 333:84ab3afc5610

* src/java/de/intevation/mxd/utils/MapScriptUtils.java: Fix encoding
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 22 Oct 2012 18:03:15 +0200
parents 8fe9ccc77962
children
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/utils/MapScriptUtils.java	Mon Oct 22 17:39:25 2012 +0200
+++ b/src/java/de/intevation/mxd/utils/MapScriptUtils.java	Mon Oct 22 18:03:15 2012 +0200
@@ -115,10 +115,10 @@
             return "";
         }
         String tmp = s.trim();
-        tmp = tmp.replace ("ö", "oe");
-        tmp = tmp.replace ("ä", "ae");
-        tmp = tmp.replace ("ü", "ue");
-        tmp = tmp.replace ("ß", "ss");
+        tmp = tmp.replace ("\u00f6", "oe");
+        tmp = tmp.replace ("\u00e4", "ae");
+        tmp = tmp.replace ("\u00fc", "ue");
+        tmp = tmp.replace ("\u00df", "ss");
 	if(!s.equals(tmp)) {
 	    logger.info("Renamed \"" + s + "\" to \"" + tmp + "\".");
 	}
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)