Skip to content

UnicodeEncodeError: 'ascii' codec can't encode character #2

Description

@ufa

Hello,
Your bot are working great, many thanks. But sometimes I hit the following bug:

Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner
self.run()
File "/usr/lib64/python2.7/threading.py", line 764, in run
self.__target(_self.__args, *self.__kwargs)
File "bot.py", line 178, in bot
AI(group,peer,message)
File "bot.py", line 91, in AI
msg(group,peer,reply)
File "bot.py", line 113, in msg
proc.stdin.write('msg '+peer.replace(' ','
')+' '+message+'\n')
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2018' in position 33: ordinal not in range(128)

Does this have to do with charset transformation?

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