-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translations for non english characters produce question marks in game #81
Comments
can you verify with a .dump on your resource pack that the json contains ???s |
it might be that the java file you wrote those characters in isn't utf8 encoded |
Yes, it generates file json files in cp1251 encoding(windows cyrillic) |
RuntimeResourcePackImpl: private static byte[] serialize(Object object) {
UnsafeByteArrayOutputStream ubaos = new UnsafeByteArrayOutputStream();
OutputStreamWriter writer = new OutputStreamWriter(ubaos);
GSON.toJson(object, writer);
try {
writer.close();
} catch(IOException e) {
throw new RuntimeException(e);
}
return ubaos.getBytes();
} If no charset is provided, it OutputStreamWriter will use system's default charset I can experiment locally and if it is the case, ill make a pr |
I got it So 0.5.7 always writes system's default charset |
For japanese, cyrillic and I'm pretty sure for almost all non latin characters
game will show ????? instead of letters in game
The text was updated successfully, but these errors were encountered: