Open GoogleCodeExporter opened 9 years ago
Original comment by ajglo...@gmail.com
on 9 Apr 2010 at 7:36
Hi! I have the same problem on Japanese environment.
Then I try to fix it.
The reason of this problem is that FileWriter class uses the system default
character encoding.
(see http://java.sun.com/javase/6/docs/api/java/io/FileWriter.html)
Here is my patch, please merge it into source code:
org.easyb.report.XmlReportWriter.groovy
--- XmlReportWriter.groovy- Wed Feb 03 16:45:51 2010
+++ XmlReportWriter.groovy Wed Jun 09 10:45:30 2010
@@ -101,7 +101,9 @@
}
public void writeReport(ResultsCollector results) {
- Writer writer = new BufferedWriter(new FileWriter(new File(location)))
+ def fileOutputStream = new FileOutputStream(location)
+ def utf8OutputStream = new OutputStreamWriter(fileOutputStream,
"UTF-8")
+ Writer writer = new BufferedWriter(utf8OutputStream)
def xml = new MarkupBuilder(writer)
Original comment by ttan...@cybernet.co.jp
on 9 Jun 2010 at 2:00
Original comment by jeffrey....@gmail.com
on 19 Dec 2010 at 6:13
Original issue reported on code.google.com by
gos...@gmail.com
on 10 Mar 2010 at 3:24