Compost

Compost

30k Downloads

non-English world name cause crash

QLNPLUS opened this issue ยท 3 comments

commented

I have a problem in using this mod. This mod may cause garbled text when automatically reading the saved config file if the save file name contains non-English characters (such as Chinese). The game may crash upon the next launch.

commented

I cannot replicate. Can you provide further details?

image
image

Unless you are talking about the config's actual filename. But that should always be compost.json. I don't know how you would have managed to alter that without modifying the mod.

commented

We've been discussing this on Discord, but if anyone else comes across this, it seems to only be present in 1.20.4 and older. This means it is pre-Java 21, but also concerns Gson moving from 2.10 to 2.10.1 (what we use to parse JSON for the config). This is a built-in library with Minecraft.

As far as that goes, those are my only leads at the moment.

commented

Problem solved, Java 17 uses windows-1252 as a default charset. J21 uses UTF-8, so it is just a matter of setting Filewriter to use UTF-8. For making older versions functional, a solution to this would be running MC with J21.