Eclipse wrong Java properties UTF-8 encoding

前端 未结 5 2092
南旧
南旧 2020-12-28 15:19

I have a JavaEE project, in which I use message properties files. The encoding of those file is set to UTF-8. In the file I use the german umlauts like ä,

5条回答
  •  长情又很酷
    2020-12-28 15:40

    Add the following arguments to your eclipse.ini file.

    -Dclient.encoding.override=UTF-8
    -Dfile.encoding=UTF-8
    

    By default Eclipse uses the encoding format picked up by the Java Virtual Machine (JVM). Also, you can set the file encoding to utf-8.

提交回复
热议问题