[Schmitzm-commits] r1526 - trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Sat Mar 19 17:32:35 CET 2011
Author: alfonx
Date: 2011-03-19 17:32:34 +0100 (Sat, 19 Mar 2011)
New Revision: 1526
Modified:
trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StylingUtil.java
Log:
Modified: trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StylingUtil.java
===================================================================
--- trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StylingUtil.java 2011-03-19 16:13:03 UTC (rev 1525)
+++ trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StylingUtil.java 2011-03-19 16:32:34 UTC (rev 1526)
@@ -2886,8 +2886,16 @@
return false;
}
- SLDTRANSFORMER.transform(exportStyle, new FileWriter(exportFile));
+ FileWriter out = new FileWriter(exportFile);
+ SLDTRANSFORMER.setEncoding(Charset.forName("UTF-8"));
+ try {
+ SLDTRANSFORMER.transform(exportStyle, out);
+ } finally {
+ out.flush();
+ out.close();
+ }
+ LOGGER.debug("Validating stored file "+exportFile+"... ");
List<Exception> validateSld = validateSld(new FileInputStream(
exportFile));
if (validateSld.size() > 0) {
More information about the Schmitzm-commits
mailing list