Devan-Kerman / ARRP

A fabric api for creating resources and assets at runtime
Mozilla Public License 2.0
101 stars 25 forks source link

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

Closed Phoupraw closed 2 years ago

Phoupraw commented 2 years ago

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 commented 2 years ago

fixed