Search code examples
javaeclipseinternationalizationeclipse-rcpproperties-file

How to make eclipse read bundle properties in UTF-8?


Externalizing the strings of an eclipse RCP bundle, e.g. from extension points, results in a bundle.properties or plugin.properties. Translating those properties into Russian results in bundle_ru.properties.

Is there a way I can tell my Eclipse RCP application to read those Resources as UTF-8 instead of ISO-8859-1?


Solution

  • This is not supported. The code that reads the bundle properties file ends up using the PropertyResourceBundle class which always assumes ISO-8859-1