bacher09 / xrcon

Xonotic (DarkPlaces) rcon client
GNU Lesser General Public License v3.0
10 stars 2 forks source link

Looks like it doesn't support extended chars, not even by stripping them... #5

Open fstltna opened 6 years ago

fstltna commented 6 years ago

Depending on who is online on my game I get these messages when running xrcon:

Traceback (most recent call last):
  File "/usr/local/bin/xrcon", line 11, in <module>
    sys.exit(XRconProgram.start())
  File "/usr/local/lib/python2.7/dist-packages/xrcon/commands/base.py", line 21, in start
    cls().run(args)
  File "/usr/local/lib/python2.7/dist-packages/xrcon/commands/xrcon.py", line 31, in run
    self.execute(namespace)
  File "/usr/local/lib/python2.7/dist-packages/xrcon/commands/xrcon.py", line 53, in execute
    self.write(data.decode('utf8'))
  File "/usr/local/lib/python2.7/dist-packages/xrcon/commands/xrcon.py", line 61, in write
    sys.stdout.write(message)
UnicodeEncodeError: 'ascii' codec can't encode character u'\ue0cc' in position 268: ordinal not in range(128)

Is there any update to fix this? Thanks!