Eclipse-RCP Wrong encoding when deploying the product

前端 未结 3 1542
忘了有多久
忘了有多久 2021-02-05 20:08

I am creating an RCP application, with many Greek messages, so everything is in UTF-8. As I develop and test through Eclipse IDE, everything is fine.

When I am deploying

3条回答
  •  孤独总比滥情好
    2021-02-05 20:38

    (copied from the question - so this shows as having an answer)

    I found the solution although it was not as trivial as I anticipated.

    Eclipse gives the ability to control the build process with build.properties, in which you can specify a property javacDefaultEncoding with the following value for example

    javacDefaultEncoding..=UTF-8

    Documentation can be found at Eclipse Help in "Plug-in Development Environment Guide > Reference > Build Configuration"

    Hope this helps someone.

提交回复
热议问题