Uncaught-Exceptions / MCRcon

Use minecraft's new-fangled Rcon
Other
51 stars 12 forks source link

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa7 in position 0: invalid start byte #20

Open igorir3 opened 7 months ago

igorir3 commented 7 months ago

The library cannot decode this character: §

:|

igorir3 commented 7 months ago

Traceback (most recent call last): File "C:\Users\kiril\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\discord\ext\commands\core.py", line 235, in wrapped ret = await coro(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\kiril\Desktop\BotАнкитирование\main.py", line 301, in minecraftlist responce = RCON.command("list") ^^^^^^^^^^^^^^^^^^^^ File "C:\Users\kiril\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\mcrcon.py", line 129, in command result = self._send(2, command) ^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\kiril\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\mcrcon.py", line 122, in _send in_data += in_data_partial.decode("utf8") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa7 in position 0: invalid start byte