opensourcehacker / sevabot

A Skype bot supporting integration with external services
http://sevabot-skype-bot.readthedocs.org/
565 stars 121 forks source link

Bot dont resolve some characters #95

Closed gamelaster closed 6 years ago

gamelaster commented 9 years ago

Heya,

i got this error:

Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "build/bdist.linux-x86_64/egg/Skype4Py/api/posix_x11.py", line 297, in run
    self.notify(data.decode('utf-8'))
  File "build/bdist.linux-x86_64/egg/Skype4Py/api/posix_x11.py", line 465, in notify
    self.notifier.notification_received(cmd)
  File "build/bdist.linux-x86_64/egg/Skype4Py/skype.py", line 151, in notification_received
    skype._CallEventHandler('ContactsFocused', str(value))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u30c4' in position 10: ordinal not in range(128)

My nickname contains a Japanese word ツ what maybe doing a trouble.. why?

oysto commented 9 years ago

Hi, this link might be of help to you: http://stackoverflow.com/questions/21129020/how-to-fix-unicodedecodeerror-ascii-codec-cant-decode-byte

I was having the same problem, except with sending messages with japanese characters in them. I managed to get it solved by following the above link.

gamelaster commented 6 years ago

Dunno, the actual state, but probably will be good to close this issue.