[Eclipse RCP] How to fix encoding problem when builing a progrma

[Eclipse RCP] How to fix encoding problem when builing a progrma

Problem

  • After building my application, text(Korean) in labels were cracked

screenshoot001


Cause

  • My environment
    • Eclipse workspace encoding : UTF-8
    • System default encoding : MS949(Windows 10)
  • When exporting RCP application, it was compiled by default text encoding which was used by the IDE


Solution

  • At first, I tried to add -Dfile.encoding=UTF8 vm option in [APPLICATION_LAUNCHER_NAME].int file. However, it didn’t work well
  • Because, text was already cracked when it was compiled

screenshoot002


  • So, I tried to add javacDefaultEncoding.. = UTF-8 option in build.properties file

screenshoot003


  • After that, it did work well

screenshoot004



References

댓글남기기

-->