MCSLTeam / MCSL2

MCSL2 | 一个简洁全能的Minecraft开服器
https://mcsl.com.cn
GNU General Public License v3.0
390 stars 41 forks source link

BUG|由于编码错误导致无法读取文件 #140

Closed LxHTT closed 9 months ago

LxHTT commented 9 months ago

Discussed in https://github.com/MCSLTeam/MCSL2/discussions/139

Originally posted by **LiuJiewenTT** January 15, 2024 ### MCSL2 系统报告 Traceback (most recent call last): File "D:\Unzipped Software\mc\MCSL2\MCSL2-~1.1-W\MCSL2Lib\Pages\consolePage.py", line 355, in colorConsoleText File "D:\Unzipped Software\mc\MCSL2\MCSL2-~1.1-W\MCSL2Lib\Controllers\serverController.py", line 395, in readServerProperties UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 656: illegal multibyte sequence ### 你在哪方面遇到了问题? MCSL2启动服务器 ### 说明 server.properties不能包含中文吗?我想设置中文的motd ### 附件(可选) ![image](https://github.com/MCSLTeam/MCSL2/assets/43092274/a37ceae3-a3b4-40e2-8f03-5029af0838d9) ### 确认 - [X] 我确保我的Issue没有和别人的重复
LxHTT commented 9 months ago

Fixed in https://github.com/MCSLTeam/MCSL2/commit/3afcf97a147460f60b384719f2d6c06001550651