Serilum / .issue-tracker

Tracks all issues for Serilum's Minecraft mods on CurseForge and Modrinth.
https://serilum.com/
153 stars 40 forks source link

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

Open ColdTearsYY opened 3 months ago

ColdTearsYY commented 3 months ago

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

James103 commented 3 months ago

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?

ColdTearsYY commented 3 months ago

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.

James103 commented 3 months ago

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.

ColdTearsYY commented 2 months ago

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