[Schmitzm-commits] r1321 - in trunk/src: junit skrueger

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Dec 1 02:33:24 CET 2010


Author: alfonx
Date: 2010-12-01 02:33:22 +0100 (Wed, 01 Dec 2010)
New Revision: 1321

Removed:
   trunk/src/junit/skrueger/
Modified:
   trunk/src/skrueger/Sitemap.java
Log:


Modified: trunk/src/skrueger/Sitemap.java
===================================================================
--- trunk/src/skrueger/Sitemap.java	2010-12-01 01:14:59 UTC (rev 1320)
+++ trunk/src/skrueger/Sitemap.java	2010-12-01 01:33:22 UTC (rev 1321)
@@ -6,6 +6,7 @@
 import java.io.Writer;
 import java.net.MalformedURLException;
 import java.net.URL;
+import java.net.URLEncoder;
 import java.util.Date;
 
 import javax.xml.parsers.DocumentBuilderFactory;
@@ -16,6 +17,8 @@
 import javax.xml.transform.dom.DOMSource;
 import javax.xml.transform.stream.StreamResult;
 
+import net.sf.antcontrib.property.URLEncodeTask;
+
 import org.apache.log4j.Logger;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
@@ -193,6 +196,8 @@
 			try {
 				URL url = new URL(se + urlToSitemap);
 
+				urlToSitemap = URLEncoder.encode(urlToSitemap, "UTF8");
+
 				url.openConnection().connect();
 
 			} catch (Exception e) {



More information about the Schmitzm-commits mailing list