Skip to content
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

[BUG] Non-ASCII characters become garbled code in non-development environment #64

Closed
Phoupraw opened this issue Mar 26, 2022 · 1 comment

Comments

@Phoupraw
Copy link

If a java file uses utf-8 in development environment and it contains strings invocation (such as JLang's), these strings will become gibberish in non-development environment.
Been tested, in net.devtech.arrp.impl.RuntimeResourcePackImpl#serialize appending a parameter Charsets.UTF_8 to new OutputStreamWriter(ubaos) will solve this.
I guess the reason is that in non-development environment the java.nio.charset.Charset#defaultCharset is not Charsets.UTF_8.

@Devan-Kerman
Copy link
Owner

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants