scala “error: io error while decoding” “with utf-8”

前端 未结 4 1006
悲&欢浪女
悲&欢浪女 2021-02-12 13:31

this thing keeps coming up I checked that all my source files are utf8 encoded, and Im using \'-encoding UTF8\' flag with both scalac and scala command line tools
any ideas?

4条回答
  •  说谎
    说谎 (楼主)
    2021-02-12 13:44

    I encountered this problem running sbt "test" with Main.scala, for the indicated reason that it wasn't saved in UTF-8. I fixed it by changing Eclipse Main.scala "File / Properties / Text file encoding / Other" to "UTF-8" and saving.

提交回复
热议问题