Eclipse-RCP Wrong encoding when deploying the product

前端 未结 3 1539
忘了有多久
忘了有多久 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:32

    When exporting a plug-in, it gets compiled through a process separate from the normal build process within the IDE. There is a known bug that the build process (PDE.Build) disregards the text encoding used by the IDE.

    The export can be made to work properly by specifying the text encoding in the build.properties file of your plugin

    javacDefaultEncoding.. =  UTF-8
    

提交回复
热议问题