Mercurial > mxd2map
changeset 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 (2012-10-22) |
parents | da60e3ac2b5d |
children | 2e445968851f |
files | ChangeLog src/java/de/intevation/mxd/utils/MapScriptUtils.java |
diffstat | 2 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Oct 22 17:39:25 2012 +0200 +++ b/ChangeLog Mon Oct 22 18:03:15 2012 +0200 @@ -5,6 +5,8 @@ * src/java/de/intevation/mxd/writer/LabelStyleWriter.java, src/java/de/intevation/mxd/writer/MapScriptWriter.java: Fix getLabel calls to work with mapscript 6.2 api + * src/java/de/intevation/mxd/utils/MapScriptUtils.java: + Fix encoding 2011-10-22 Andre Heinecke <aheinecke@intevation.de>
--- 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 + "\"."); }