当我编译我的项目时,控制台将显示:
[error] IO error while decoding Routes.scala with UTF-8,Please try specifying another one using the -encoding option"
此错误的可能原因是什么?
最佳答案
您的路由文件中可能包含智能引号或其他 Microsoft 特定编码字符。如果您从 Microsoft Word 文档或 Web 复制并粘贴到您的文件中,则经常会发生这种情况。寻找以某种方式 curl 的“或”或撇号字符。在程序员的文本编辑器中用常规的直引号和单引号替换它们。
关于scala - 编译Play Framework项目时出现"IO error while decoding Routes.scala with UTF-8",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31180092/