Thor77 / TS3Py

A Python Teamspeak3-Query Library
4 stars 0 forks source link

Charset problems #5

Closed antoine-pous closed 10 years ago

antoine-pous commented 10 years ago

Sometime i got this error and the bot crash, i dont understand what is the problem :/

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x88 in position 50: invalid start byte

sh-4.2$ python3 __init__.py
registered notifys
registered events...
starting...
Traceback (most recent call last):
  File "__init__.py", line 15, in <module>
    bot.start()
  File "/var/www/ts3/TS3Pybot/ts3bot.py", line 173, in start
    self.startLoop()
  File "/var/www/ts3/TS3Pybot/ts3bot.py", line 190, in startLoop
    func(parsed)
  File "/var/www/ts3/TS3Pybot/ts3bot.py", line 145, in findCommand
    self.registeredCommands[command][0](params, data['invokerid'], data['invokername'])
  File "/var/www/ts3/TS3Pybot/plugins/notice.py", line 12, in notify
    client = self.command('clientinfo',{'clid':clid})
  File "/var/www/ts3/TS3Pybot/plugin.py", line 32, in command
    return self.bot.command(cmd, params, options)
  File "/var/www/ts3/TS3Pybot/ts3py.py", line 79, in command
    response = self.telnet.read_until('\n\r'.encode()).decode().strip()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x88 in position 50: invalid start byte```
Thor77 commented 10 years ago

should be fixed with the newest patch