Eclipse wrong Java properties UTF-8 encoding

前端 未结 5 2072
南旧
南旧 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:57

    Properties Files are expected to be ISO-8859-1 (Latin-1) encoded. Most likely this what eclipse was set to by default as well.

    You have to make sure that every tool which is run in the build or whatever disregards the spec and uses UTF-8 instead.

提交回复
热议问题