alastor1729 / sitemapgen4j

Automatically exported from code.google.com/p/sitemapgen4j
0 stars 0 forks source link

URL using non ASCII characters [utf-8 support] #16

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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