th3-z / kf2-magicked-admin

:spider: Mutator-free management, statistics, and in-game bot for ranked Killing Floor 2 servers
https://kf2-ma.th3-z.xyz
MIT License
32 stars 7 forks source link

motd language problem #185

Open Racpy opened 3 years ago

Racpy commented 3 years ago

If i use traditional chinese in MOTD leaderboard It will show UnicodeDecodeError: 'cp950' codec can't decode

hopefully get solution

th3-z commented 3 years ago

Thanks, I'll take a look. Can you provide an example string that causes the crash?

Racpy commented 3 years ago

error

th3-z commented 3 years ago

Hi, I tried putting some traditional Chinese characters in an motd file and it didn't reproduce this crash. Please provide the motd file you used to generate the crash. Either paste it here and specify the file encoding or upload the file somewhere and link it here.

Racpy commented 3 years ago

just translate welcome to our server traditional Chinese characters is 歡迎來到我們的伺服器

server_one.txt I change file to txt to upload here

Racpy commented 3 years ago

Does this help you find the error ? greeter can't work with traditional Chinese characters too .