diff --git a/print/src/org/compiere/print/ReportEngine.java b/print/src/org/compiere/print/ReportEngine.java index 2f0a81b071..0b4755a645 100644 --- a/print/src/org/compiere/print/ReportEngine.java +++ b/print/src/org/compiere/print/ReportEngine.java @@ -42,6 +42,7 @@ import com.qoppa.pdf.*; *

* Change log: *

* @@ -408,7 +409,7 @@ queued-job-count = 0 (class javax.print.attribute.standard.QueuedJobCount) Language lang = language; if (lang == null) lang = Language.getLoginLanguage(); - Writer fw = new OutputStreamWriter(new FileOutputStream(file, false), "UTF-8"); // teo_sarca: modified to save using UTF8 [ 1652660 ] + Writer fw = new OutputStreamWriter(new FileOutputStream(file, false), Ini.getCharset()); // teo_sarca: save using adempiere charset [ 1658127 ] return createHTML (new BufferedWriter(fw), onlyTable, lang); } catch (FileNotFoundException fnfe) @@ -510,7 +511,7 @@ queued-job-count = 0 (class javax.print.attribute.standard.QueuedJobCount) { try { - Writer fw = new OutputStreamWriter(new FileOutputStream(file, false), "UTF-8"); // teo_sarca: modified to save using UTF8 [ 1652660 ] + Writer fw = new OutputStreamWriter(new FileOutputStream(file, false), Ini.getCharset()); // teo_sarca: save using adempiere charset [ 1658127 ] return createCSV (new BufferedWriter(fw), delimiter, language); } catch (FileNotFoundException fnfe) @@ -643,7 +644,7 @@ queued-job-count = 0 (class javax.print.attribute.standard.QueuedJobCount) { try { - Writer fw = new OutputStreamWriter(new FileOutputStream(file, false), "UTF-8"); // teo_sarca: modified to save using UTF8 [ 1652660 ] + Writer fw = new OutputStreamWriter(new FileOutputStream(file, false), Ini.getCharset()); // teo_sarca: save using adempiere charset [ 1658127 ] return createXML (new BufferedWriter(fw)); } catch (FileNotFoundException fnfe)