DroidFish: Fixed build of eco.dat on platforms where UTF-8 is not

standard.
This commit is contained in:
Peter Osterlund
2017-02-04 08:14:05 +01:00
parent 1a4b857fe9
commit 698e5c203d

View File

@@ -34,7 +34,7 @@ public class FileUtil {
public static String[] readFile(String filename) throws IOException {
ArrayList<String> ret = new ArrayList<String>();
InputStream inStream = new FileInputStream(filename);
InputStreamReader inFile = new InputStreamReader(inStream);
InputStreamReader inFile = new InputStreamReader(inStream, "UTF-8");
BufferedReader inBuf = new BufferedReader(inFile);
String line;
while ((line = inBuf.readLine()) != null)