1

I use libGDX with java and android studio and I want to make localization. I use Bundle from libGDX but I can't get cyrillic letters(I get only "?"s): printing message from bundle

I tried to change encoding to windows-1251, cp866 and UTF-8(It's default) but it doesn't work. That's my code if it can help(other parts of code are default for libGDX):

    private I18NBundle myBundle;
private Locale locale;

@Override
public void create () {
    locale = new Locale(Locale.getDefault().getLanguage());
    FileHandle file = Gdx.files.internal("bundle_" + locale);
    myBundle = I18NBundle.createBundle(file, locale);
    
    Gdx.app.log("message", myBundle.get("button.start"));
}
Mirka
  • 11
  • 2

0 Answers0