changeset 258:4bae15d560d3

Fixed encoding problem with german umlauts.
author raimund renkert <raimund.renkert@intevation.de>
date Mon, 15 Aug 2011 15:52:30 +0200
parents 1ac277053049
children 8fe9ccc77962
files ChangeLog src/java/de/intevation/mxd/writer/MapScriptWriter.java
diffstat 2 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Aug 15 15:28:05 2011 +0200
+++ b/ChangeLog	Mon Aug 15 15:52:30 2011 +0200
@@ -1,3 +1,8 @@
+2011-08-15  Raimund Renkert  <raimund.renkert@intevation.de>
+
+	* src/java/de/intevation/mxd/writer/MapScriptWriter.java:
+	  Fixed encoding problem with german umlauts.
+
 2011-08-15  Raimund Renkert  <raimund.renkert@intevation.de>
 
 	* src/java/de/intevation/mxd/writer/MapScriptWriter.java:
--- a/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Mon Aug 15 15:28:05 2011 +0200
+++ b/src/java/de/intevation/mxd/writer/MapScriptWriter.java	Mon Aug 15 15:52:30 2011 +0200
@@ -714,10 +714,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 ("ö", "oe");
+        tmp = tmp.replace ("ä", "ae");
+        tmp = tmp.replace ("ü", "ue");
+        tmp = tmp.replace ("ß", "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)