"I / O error while decoding Routes.scala with UTF-8" when compiling a Play Framework project

When I compile my project, the console will show:

[error] I / O error while decoding Routes.scala from UTF-8, try specifying a different one using the -encoding option "

What is the reason for this error?

+3


source to share


1 answer


You may have smart quotes or other Microsoft encoded characters in your routes file. This often happens if you copy and paste a Microsoft Word or Internet document into your file. Look for words "or" or "apostrophe" that curl in one way or another. Replace them in a text editor with regular straight quotes and single quotes.



0


source







All Articles