feature request [ 1658127 ] Select charset encoding on import

This commit is contained in:
teo_sarca 2007-02-12 17:20:22 +00:00
parent 114bb0b1c7
commit 53fab0dbbf
1 changed files with 4 additions and 3 deletions

View File

@ -42,6 +42,7 @@ import com.qoppa.pdf.*;
* <p> * <p>
* Change log: * Change log:
* <ul> * <ul>
* <li>2007-02-12 - teo_sarca - [ 1658127 ] Select charset encoding on import
* <li>2007-02-10 - teo_sarca - [ 1652660 ] Save XML,HTML,CSV should have utf8 charset * <li>2007-02-10 - teo_sarca - [ 1652660 ] Save XML,HTML,CSV should have utf8 charset
* </ul> * </ul>
* *
@ -408,7 +409,7 @@ queued-job-count = 0 (class javax.print.attribute.standard.QueuedJobCount)
Language lang = language; Language lang = language;
if (lang == null) if (lang == null)
lang = Language.getLoginLanguage(); 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); return createHTML (new BufferedWriter(fw), onlyTable, lang);
} }
catch (FileNotFoundException fnfe) catch (FileNotFoundException fnfe)
@ -510,7 +511,7 @@ queued-job-count = 0 (class javax.print.attribute.standard.QueuedJobCount)
{ {
try 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); return createCSV (new BufferedWriter(fw), delimiter, language);
} }
catch (FileNotFoundException fnfe) catch (FileNotFoundException fnfe)
@ -643,7 +644,7 @@ queued-job-count = 0 (class javax.print.attribute.standard.QueuedJobCount)
{ {
try 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)); return createXML (new BufferedWriter(fw));
} }
catch (FileNotFoundException fnfe) catch (FileNotFoundException fnfe)