读文件遇到错误:java.nio.charset.MalformedInputException: Input length = 1 at java.nio.charset.CoderResult.

报错信息: java.nio.charset.MalformedInputException: Input length = 1 at java.nio.charset.CoderResult.throwException(Unknown Source) 问题:txt文件格式不是utf-8 解决方法:打开txt文件-另存为 将编码格式修改为utf-8
相关文章
相关标签/搜索