I am developing a small project, and I would like to use internationalization. The problem is that when I try to use a .properties file with Cyrillic characters inside, the text is displayed as garbage. When I program hard the lines, they are displayed just fine.
Here is my code:
ResourceBundle labels = ResourceBundle.getBundle("Labels"); btnQuit = new JButton(labels.getString("quit"));
And in my .properties file:
quit = Exit
And I get trash. When i try
btnQuit = new JButton(");
It is displayed correctly. As far as I know, UTF-8 is the encoding used for files.
Any ideas?
Elena source share