From 895cac17a656e5ab0c74257868a158afbbdc8074 Mon Sep 17 00:00:00 2001 From: denis Date: Wed, 18 Mar 2015 19:35:29 +0100 Subject: [PATCH] URL using non ASCII characters [utf-8 support] #5 https://github.com/dfabulich/sitemapgen4j/issues/5#issuecomment-82243209 --- .../java/com/redfin/sitemapgenerator/SitemapGenerator.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/redfin/sitemapgenerator/SitemapGenerator.java b/src/main/java/com/redfin/sitemapgenerator/SitemapGenerator.java index e627faa..b88e066 100644 --- a/src/main/java/com/redfin/sitemapgenerator/SitemapGenerator.java +++ b/src/main/java/com/redfin/sitemapgenerator/SitemapGenerator.java @@ -2,11 +2,11 @@ package com.redfin.sitemapgenerator; import java.io.File; import java.io.FileOutputStream; -import java.io.FileWriter; import java.io.IOException; import java.io.OutputStreamWriter; import java.net.MalformedURLException; import java.net.URL; +import java.nio.charset.Charset; import java.util.ArrayList; import java.util.List; import java.util.zip.GZIPOutputStream; @@ -193,9 +193,9 @@ abstract class SitemapGenerator