error: illegal character: '\ufeff' in java

前端 未结 3 2014
自闭症患者
自闭症患者 2021-01-02 08:09

Got this error when compiled java code in ubuntu.

![Got this error][1]

error: illegal character: \'\\ufeff\'
<
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-02 08:41

    Use another editor because it seems to be an eclipse UTF-8-BOM problem. Convert the UTF type UTF-8.

    And also I note that ; First it doesn't work for me and I convert the type ANSI and after convert type to UTF-8 format. It can be a another alternative solution for you

提交回复
热议问题