IDEMPIERE-4305 Improve CSV Import file Loader validaFile mthod to specify be charset (#82)

This commit is contained in:
Hideaki Hagiwara 2020-05-25 18:04:34 +09:00 committed by GitHub
parent 8b6d4e5d19
commit 4edd985ef8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ public class MImportTemplate extends X_AD_ImportTemplate
BufferedWriter bw = null;
try {
tmpfile = File.createTempFile("CSVImportAction", "csv");
bw = new BufferedWriter(new FileWriter(tmpfile));
bw = new BufferedWriter(new FileWriter(tmpfile,charset));
String firstLine = null;
String line = null;
while ((line = reader.readLine()) != null) {