comparison src/java/de/intevation/mxd/writer/MapScriptWriter.java @ 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
comparison
equal deleted inserted replaced
257:1ac277053049 258:4bae15d560d3
712 private String validateString (String s) { 712 private String validateString (String s) {
713 if (s.equals("")) { 713 if (s.equals("")) {
714 return ""; 714 return "";
715 } 715 }
716 String tmp = s.trim(); 716 String tmp = s.trim();
717 tmp = tmp.replace ("ö", "oe"); 717 tmp = tmp.replace ("ö", "oe");
718 tmp = tmp.replace ("ä", "ae"); 718 tmp = tmp.replace ("ä", "ae");
719 tmp = tmp.replace ("ü", "ue"); 719 tmp = tmp.replace ("ü", "ue");
720 tmp = tmp.replace ("ß", "ss"); 720 tmp = tmp.replace ("ß", "ss");
721 if(!s.equals(tmp)) { 721 if(!s.equals(tmp)) {
722 logger.info("Renamed \"" + s + "\" to \"" + tmp + "\"."); 722 logger.info("Renamed \"" + s + "\" to \"" + tmp + "\".");
723 } 723 }
724 return tmp; 724 return tmp;
725 } 725 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)