读取 txt 文件乱码:
BufferedReader read = new BufferedReader(new FileReader(new File(filenameString)));
解决乱码代码示例:
InputStreamReader isr = new InputStreamReader(new FileInputStream(filenameString), "UTF-8");
BufferedReader read = new BufferedReader(isr);
网友评论