[MXD2map-commits] r258:4bae15d560d3

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Aug 15 15:54:57 CEST 2011


details:   http://hg.intevation.org/geospatial/mxd2map/rev/4bae15d560d3

changeset: 258:4bae15d560d3

user:      raimund renkert <raimund.renkert at intevation.de>

date:      Mon Aug 15 15:52:30 2011 +0200

description:
Fixed encoding problem with german umlauts.


diffstat:

 ChangeLog                                              |  5 +++++
 src/java/de/intevation/mxd/writer/MapScriptWriter.java |  8 ++++----
 2 files changed, 9 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 1ac277053049 -r 4bae15d560d3 ChangeLog
--- 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 at intevation.de>
+
+	* src/java/de/intevation/mxd/writer/MapScriptWriter.java:
+	  Fixed encoding problem with german umlauts.
+
 2011-08-15  Raimund Renkert  <raimund.renkert at intevation.de>
 
 	* src/java/de/intevation/mxd/writer/MapScriptWriter.java:
diff -r 1ac277053049 -r 4bae15d560d3 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 + "\".");
 	}


More information about the MXD2map-commits mailing list