本帖最后由 android0276 于 2014-7-6 20:24 编辑
这是源码:
InputStream inputStream = new FileInputStream(filePath);
// 创建BufferedReader对象
InputStreamReader inputReader = new InputStreamReader(inputStream, "UTF-8");
BufferedReader bufferedReader = new BufferedReader(inputReader);
String temp = null;
while ((temp = bufferedReader.readLine()) != null) {
System.out.println(temp);
}
输出的汉语全乱码怎么回事? |
|