Commit 9b500dc0 authored by Bill Lynch's avatar Bill Lynch Committed by bill

Read files in as UTF-8


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1059 b35dd754-fafc-0310-a699-88a17e54d16e
parent 7c65e6cb
......@@ -90,7 +90,7 @@
String filename = log + ".log";
File logFile = new File(logDir, filename);
BufferedReader in = new BufferedReader(new FileReader(logFile));
BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(logFile), "UTF-8"));
String line = null;
int totalNumLines = 0;
while ((line=in.readLine()) != null) {
......@@ -102,7 +102,7 @@
numLines = totalNumLines;
}
String[] lines = new String[numLines];
in = new BufferedReader(new FileReader(logFile));
in = new BufferedReader(new InputStreamReader(new FileInputStream(logFile), "UTF-8"));
// skip lines
int start = totalNumLines - numLines;
if (start < 0) { start = 0; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment