mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-10 16:12:41 +01:00
DroidFish: Fixed build of eco.dat on platforms where UTF-8 is not
standard.
This commit is contained in:
@@ -34,7 +34,7 @@ public class FileUtil {
|
|||||||
public static String[] readFile(String filename) throws IOException {
|
public static String[] readFile(String filename) throws IOException {
|
||||||
ArrayList<String> ret = new ArrayList<String>();
|
ArrayList<String> ret = new ArrayList<String>();
|
||||||
InputStream inStream = new FileInputStream(filename);
|
InputStream inStream = new FileInputStream(filename);
|
||||||
InputStreamReader inFile = new InputStreamReader(inStream);
|
InputStreamReader inFile = new InputStreamReader(inStream, "UTF-8");
|
||||||
BufferedReader inBuf = new BufferedReader(inFile);
|
BufferedReader inBuf = new BufferedReader(inFile);
|
||||||
String line;
|
String line;
|
||||||
while ((line = inBuf.readLine()) != null)
|
while ((line = inBuf.readLine()) != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user