phamductri/sitemapgen4j

URL using non ASCII characters [utf-8 support]

Opened this issue · 1 comments

When I use custom url with Arabic or chineese characters , I get '?' 
I'm using version 1.0.1 on  windows 8?

here is the fix :

Ligne : 245 [SitemapGenerator.class]
 if (gzip) {
                FileOutputStream fileStream = new               FileOutputStream(outFile);
                GZIPOutputStream gzipStream = new GZIPOutputStream(fileStream);
                out = new OutputStreamWriter(gzipStream, Charset.forName("UTF-8").newEncoder());
            } else {
                out = new OutputStreamWriter(
                        new FileOutputStream(outFile),
                        Charset.forName("UTF-8").newEncoder());
            }

Original issue reported on code.google.com by zied.ben...@ibex-industries.net on 17 Jul 2013 at 3:11

Pull request can be found here: https://github.com/dfabulich/sitemapgen4j/pull/6

Original comment by m.k...@irregular.at on 20 Mar 2015 at 10:03