java导入文件用bufferedReader.readLine()读取中文乱码
以下例子,仅供参考:UploadFile file = getFile(); //获取文件// file = file.getFile()FileInputStream f =new FileInputStream(file.getPath());InputStreamReader reader = new InputStreamReader( f ,“UTF-8”); //在此转码即可BufferedReader bufferedReader = new BufferedReader(r
原创
2020-05-12 15:30:46 ·
2612 阅读 ·
3 评论