An error occurred while compiling the Scala file with scalac today, with the following error message:
There are many explanations on the Internet about the cause of the error, so I won’t repeat it here, but directly say the solution:
Using Notepad++ or similar software, convert to utf-8 bon-free coding format.
Scalac Helloworld.Scala again, OK.
Of course, the Java language has the same solution.
There are many explanations on the Internet about the cause of the error, so I won’t repeat it here, but directly say the solution:
Using Notepad++ or similar software, convert to utf-8 bon-free coding format.
Scalac Helloworld.Scala again, OK.
Of course, the Java language has the same solution.
Read More:
- error: converting to execution character set: Illegal byte sequence
- C – error: converting to execution character set:Illegal byte sequence
- Illegal escape character in string literal
- To solve the idea compilation error: error: (1,1) Java: illegal character: ‘\ UFF’
- [resolved] error: Java: illegal character: ‘\ ufef’ or error: Java: class, interface or enum required
- Solution to the problem that SQL database query result field contains new line character, which leads to copy to excel dislocation
- Java prompt unmappable character for encoding solution
- Solving syntax error: unexpected character after line continuation character
- Syntax error: unexpected character after line continuation character
- Unicode encodeerror: ‘GBK’ codec can’t encode character solution
- Front end project construction error unexpected character ‘@’ solution
- ASP.NET How to deal with “unexpected character” when writing code
- How to solve the problem of artifact contains illegal characters when creating springboot project with idea
- error: unclosed character literal (How to Fix)
- String operation to delete the character at the specified position
- MySQL modify character set
- PyTorch CUDA error: an illegal memory access was encountered
- [Solved] error: cannot create �� Illegal byte sequence
- Compiler error message: cs1056: unexpected character handling
- The scan of annotations for web application [] could not be completed due to a stackoverflower error. Possible root causes include the low setting of – XSS and illegal circular inheritance dependencies. The class hierarchy being processed is