Essential-Commands icon indicating copy to clipboard operation
Essential-Commands copied to clipboard

zh_cn lang issues

Open John-Paul-R opened this issue 3 years ago • 3 comments

Invalid language configuration image

And there is garbled code after MOTD setting

image

Originally posted by @AdminHcat in https://github.com/John-Paul-R/Essential-Commands/issues/72#issuecomment-1085287377

John-Paul-R avatar Apr 01 '22 02:04 John-Paul-R

I think this is due to the encoding used for the config (or by Java strings internally?) When I make the config read/writer use UTF-16 instead of UTF-8, things work fine.

Now, just to figure out how to migrate existing configs to UTF-16 without breaking things... (Or read and encode these chars in UTF-8 by escaping them in some way?)

John-Paul-R avatar Apr 24 '22 20:04 John-Paul-R

Didn't mean to close, whoops.

John-Paul-R avatar Apr 24 '22 20:04 John-Paul-R

Older, wiser JP here. It should be totally possible to encode these chars in UTF8, so I'm not quite sure what is going on here.

John-Paul-R avatar Dec 10 '22 17:12 John-Paul-R