comparison 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
comparison
equal deleted inserted replaced
332:da60e3ac2b5d 333:84ab3afc5610
113 public String replaceUmlauts (String s) { 113 public String replaceUmlauts (String s) {
114 if (s.equals("")) { 114 if (s.equals("")) {
115 return ""; 115 return "";
116 } 116 }
117 String tmp = s.trim(); 117 String tmp = s.trim();
118 tmp = tmp.replace ("ö", "oe"); 118 tmp = tmp.replace ("\u00f6", "oe");
119 tmp = tmp.replace ("ä", "ae"); 119 tmp = tmp.replace ("\u00e4", "ae");
120 tmp = tmp.replace ("ü", "ue"); 120 tmp = tmp.replace ("\u00fc", "ue");
121 tmp = tmp.replace ("ß", "ss"); 121 tmp = tmp.replace ("\u00df", "ss");
122 if(!s.equals(tmp)) { 122 if(!s.equals(tmp)) {
123 logger.info("Renamed \"" + s + "\" to \"" + tmp + "\"."); 123 logger.info("Renamed \"" + s + "\" to \"" + tmp + "\".");
124 } 124 }
125 return tmp; 125 return tmp;
126 } 126 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)