Alexei
Alexei

Reputation: 15726

Not show correct russian text from message bundle

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:

ВерÑиÑ

Upvotes: 0

Views: 139

Answers (0)

Related Questions