Hidden Recipe Book (Forge)

Hidden Recipe Book (Forge)

386k Downloads

[areas] Using Chinese to edit areas.json5 or in-game-config-editor 'leavePrefix' and 'enterPrefix' will not display correctly in the game.

ColdTearsYY opened this issue · 4 comments

commented

Information

Minecraft version: 1.20.1
Modloader: Forge
Forge version: 47.2.20
Environment: Multiplayer

Mod name: Areas
Mod version: 5.6

Description

Editing "leavePrefix" and "enterPrefix" in Chinese will not display properly in the game; it will appear as mojibake.
image
After clicking done, and go back to check again...
image
in areas.json5 it appears to be
image

Crash report

none it won't crash the game

commented

I deleted the json5 and regenerated one. It solved the problem. Thanks a lot.

commented

Do you get mojibake in-game when using a text editor to edit the enterPrefix field in areas.json5, instead of editing the config in-game?

NOW editing the json5 directly still causes same issue
The text in json5 displays correctly but both the in-game config and the actual game display get mojibake
When I first installed this mod, I edited the json5 directly and this problem did not occur, and it could display normally, but after using the in-game editor once, the issue occurs.

commented

Do you get mojibake in-game when using a text editor to edit the enterPrefix field in areas.json5, instead of editing the config in-game?

commented

Which encoding is the config file saved in? If it changed when you first used the in-game config, that may be causing this issue.