scala文件读取报错“java.nio.charset.MalformedInputException: Input length = 1”

读取文件时设置的字符编码错误,查看原文件的编码,在Source.fromFile中重新设置即可

posted @ 2018-12-17 14:56  tele  阅读(1179)  评论(0编辑  收藏  举报