读文件:
File f = new File(fileName); InputStreamReader read = new InputStreamReader(new FileInputStream(f),"utf-8"); BufferedReader reader=new BufferedReader(read);
使用utf-8编码读取
检查 doc 的 编码 格式 人家 utf-8 你就utf-8 ,人家gb2312,那你就gb2321