0
java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)

Here my messageBundle_ru_RU.properties (UTF-8):

In IntellIJ IDEA 2022:

enter image description here

And in java code read like this:

private static ResourceBundle resMessagesBundle;

  private static String getTranslateString(String key) {
        String result = resMessagesBundle.getString(key); 
        return result;
    }

but result is not correct:

ВерÑиÑ
Alexei
  • 14,350
  • 37
  • 121
  • 240

0 Answers0