From baf877e3b27a7791b8e1803d126651158e761589 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Sat, 10 Feb 2007 15:58:43 +0000 Subject: [PATCH] bug fix [ 1652660 ] Save XML,HTML,CSV should have utf8 charset --- print/src/org/compiere/print/ReportEngine.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/print/src/org/compiere/print/ReportEngine.java b/print/src/org/compiere/print/ReportEngine.java index 3b0ad7d224..2f0a81b071 100644 --- a/print/src/org/compiere/print/ReportEngine.java +++ b/print/src/org/compiere/print/ReportEngine.java @@ -39,6 +39,11 @@ import com.qoppa.pdf.*; * Report Engine. * For a given PrintFormat, * create a Report + *

+ * Change log: + *

* * @author Jorg Janke * @version $Id: ReportEngine.java,v 1.4 2006/10/08 06:52:51 comdivision Exp $ @@ -403,7 +408,7 @@ queued-job-count = 0 (class javax.print.attribute.standard.QueuedJobCount) Language lang = language; if (lang == null) lang = Language.getLoginLanguage(); - FileWriter fw = new FileWriter (file, false); + Writer fw = new OutputStreamWriter(new FileOutputStream(file, false), "UTF-8"); // teo_sarca: modified to save using UTF8 [ 1652660 ] return createHTML (new BufferedWriter(fw), onlyTable, lang); } catch (FileNotFoundException fnfe) @@ -505,7 +510,7 @@ queued-job-count = 0 (class javax.print.attribute.standard.QueuedJobCount) { try { - FileWriter fw = new FileWriter (file, false); + Writer fw = new OutputStreamWriter(new FileOutputStream(file, false), "UTF-8"); // teo_sarca: modified to save using UTF8 [ 1652660 ] return createCSV (new BufferedWriter(fw), delimiter, language); } catch (FileNotFoundException fnfe) @@ -638,7 +643,7 @@ queued-job-count = 0 (class javax.print.attribute.standard.QueuedJobCount) { try { - FileWriter fw = new FileWriter (file, false); + Writer fw = new OutputStreamWriter(new FileOutputStream(file, false), "UTF-8"); // teo_sarca: modified to save using UTF8 [ 1652660 ] return createXML (new BufferedWriter(fw)); } catch (FileNotFoundException fnfe)