方法一:BufferedReader bufferedReader =new BufferedReader(new UnicodeReader(new FileInputStream(file)));
方法二:BufferedReader bufferedReader =new BufferedReader(new InputStreamReader(new BOMInputStream(new FileInputStream(file))));
以上兩種方法都可解決如下字符問題:java
java.nio.charset.MalformedInputException: Input length = 1code