IDEMPIERE-4305 Improve CSV Import file Loader validaFile mthod to specify be charset (#82)
This commit is contained in:
parent
8b6d4e5d19
commit
4edd985ef8
|
@ -158,7 +158,7 @@ public class MImportTemplate extends X_AD_ImportTemplate
|
||||||
BufferedWriter bw = null;
|
BufferedWriter bw = null;
|
||||||
try {
|
try {
|
||||||
tmpfile = File.createTempFile("CSVImportAction", "csv");
|
tmpfile = File.createTempFile("CSVImportAction", "csv");
|
||||||
bw = new BufferedWriter(new FileWriter(tmpfile));
|
bw = new BufferedWriter(new FileWriter(tmpfile,charset));
|
||||||
String firstLine = null;
|
String firstLine = null;
|
||||||
String line = null;
|
String line = null;
|
||||||
while ((line = reader.readLine()) != null) {
|
while ((line = reader.readLine()) != null) {
|
||||||
|
|
Loading…
Reference in New Issue