\65279 Problem solving

When using Ant to build a project on jeckins, an error is reported as shown in the figure:
C:\JBuilder2008\workspaces\UBSS\src\com\guanghua\framework\controller\SpringDelegate.java:1: Illegal character: \65279

Several modifications did not solve the problem , I asked for help online and found that it turned out to be like this: I
used ant to package the project in eclipse, and encountered a problem: when compiling Java files, some java files reported an illegal character \65279 error. According to the error prompt
in eclipse, I found that there was an error : Illegal character: \65279] java file, first change the file encoding to: ISO-8859-1, then open the java file, find several garbled characters in the first position [ ], delete the garbled characters, then change the encoding of the file back to
utf

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326720768&siteId=291194637