To solve the idea compilation error: error: (1,1) Java: illegal character: ‘\ UFF’

The running program has a class error prompt:

Solution:

Right click in the code and select remove BOM


Read More: