Skip to content

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

Open
@fstltna

Description

@fstltna

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions