Eclipse-RCP部署产品时编码错误 [英] Eclipse-RCP Wrong encoding when deploying the product

查看:127
本文介绍了Eclipse-RCP部署产品时编码错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个具有许多希腊语消息的RCP应用程序,所以一切都是UTF-8。当我通过Eclipse IDE开发和测试时,一切都很好。



当我通过Eclipse产品导出向导进行部署时,导致的exe不能正确显示希腊字母。



我知道我错过了一些愚蠢的事情,但我不知道该怎么做。你可以帮忙吗?

解决方案

(从问题复制 - 所以这显示有答案)



我发现解决方案虽然不如我预期的那样微不足道。



Eclipse提供了通过构建来控制构建过程的能力。属性,您可以在其中指定具有以下值的属性javacDefaultEncoding,例如



javacDefaultEncoding .. = UTF-8



希望这有助于某人。


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 through "Eclipse Product export Wizard" the resulting exe does not correctly display the Greek letters.

I know that I am missing something stupid, but I have no idea what. Could you please help?

解决方案

(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.

这篇关于Eclipse-RCP部署产品时编码错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆