Skip to content

Commit

Permalink
运行日志加载编码统一,解决windows环境下日志乱码问题;
Browse files Browse the repository at this point in the history
  • Loading branch information
xueli.xue committed May 3, 2017
1 parent dccb0ec commit 7765ef5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ public static LogResult readLog(String logFileName, int fromLineNum){
int toLineNum = 0;
LineNumberReader reader = null;
try {
reader = new LineNumberReader(new FileReader(logFile));
//reader = new LineNumberReader(new FileReader(logFile));
reader = new LineNumberReader(new InputStreamReader(new FileInputStream(logFile), "utf-8"));
String line = null;

while ((line = reader.readLine())!=null) {
Expand Down

0 comments on commit 7765ef5

Please sign in to comment.