garrettjoecox / scriptserver

A Minecraft server wrapper, allows for simple plugins in vanilla
GNU General Public License v3.0
68 stars 10 forks source link

RCON messages don't support UTF-8 #18

Closed ghost closed 6 years ago

ghost commented 6 years ago

Seems like having ÆØÅ in send and tellRaw commands just return ? in-game. ÆØÅ is not working in the command themselves either.

Been looking for a few hours now, I can't seem to figure out where exactly the encoding problem occur. Doing a tellraw outside the library, directly in the games console, works fine, so i'm pretty sure it's a problem in the code.

Got any idea?

garrettjoecox commented 6 years ago

Hmm, this seems to be a limitation of the RCON module in use simple-rcon. It's encoding the RCON packets in ascii, the characters you are trying to use are utf8.

I will submit an issue on that repository, after a quick attempt changing the encoding to utf8 doesn't cause any issues but I'll need to do some more testing this weekend.