bug fix [ 1619158 ] Import is not working with UTF-8
This commit is contained in:
parent
987ef0186f
commit
7b92d4f50c
|
@ -32,6 +32,11 @@ import org.compiere.util.*;
|
||||||
* b) Accounts are created via the createAccounts function
|
* b) Accounts are created via the createAccounts function
|
||||||
* c) retrieve the C_ElementValue_ID for the given key
|
* c) retrieve the C_ElementValue_ID for the given key
|
||||||
* </pre>
|
* </pre>
|
||||||
|
* <p>
|
||||||
|
* Change log:
|
||||||
|
* <ul>
|
||||||
|
* <li>2007-01-27 - teo_sarca - [ 1619158 ] Import is not working with UTF-8
|
||||||
|
* </ul>
|
||||||
*
|
*
|
||||||
* @author Jorg Janke
|
* @author Jorg Janke
|
||||||
* @version $Id: NaturalAccountMap.java,v 1.3 2006/07/30 00:51:02 jjanke Exp $
|
* @version $Id: NaturalAccountMap.java,v 1.3 2006/07/30 00:51:02 jjanke Exp $
|
||||||
|
@ -78,7 +83,7 @@ public final class NaturalAccountMap<K,V> extends CCache<K,V>
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// see FileImport
|
// see FileImport
|
||||||
BufferedReader in = new BufferedReader(new FileReader(file), 10240);
|
BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8"), 10240);
|
||||||
// not safe see p108 Network pgm
|
// not safe see p108 Network pgm
|
||||||
String errMsg = "";
|
String errMsg = "";
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,12 @@ import org.compiere.util.*;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fixed length file import
|
* Fixed length file import
|
||||||
|
* <p>
|
||||||
|
* Change log:
|
||||||
|
* <ul>
|
||||||
|
* <li>2007-01-27 - teo_sarca - [ 1619158 ] Import is not working with UTF-8
|
||||||
|
* </ul>
|
||||||
*
|
*
|
||||||
* @author Jorg Janke
|
* @author Jorg Janke
|
||||||
* @version $Id: VFileImport.java,v 1.2 2006/07/30 00:51:28 jjanke Exp $
|
* @version $Id: VFileImport.java,v 1.2 2006/07/30 00:51:28 jjanke Exp $
|
||||||
|
@ -257,7 +262,7 @@ public class VFileImport extends CPanel
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// see NaturalAccountMap
|
// see NaturalAccountMap
|
||||||
BufferedReader in = new BufferedReader(new FileReader(chooser.getSelectedFile()), 10240);
|
BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(chooser.getSelectedFile()), "UTF-8"), 10240);
|
||||||
// not safe see p108 Network pgm
|
// not safe see p108 Network pgm
|
||||||
String s = null;
|
String s = null;
|
||||||
while ((s = in.readLine()) != null)
|
while ((s = in.readLine()) != null)
|
||||||
|
|
Loading…
Reference in New Issue