attzonko / mmpy_bot

A python-based chatbot for Mattermost (http://www.mattermost.org).
MIT License
265 stars 104 forks source link

using unicode #114

Closed mlmnetcologne closed 5 years ago

mlmnetcologne commented 5 years ago

Describe the bug/question Hi, I want to use Unicode character like äöü, but I get an error: UnicodeEncodeError: 'ASCII' codec can't encode character u'\xfc' in position 64: ordinal not in range(128) Because it wants to convert it to ASCII.

How To Reproduce send a message to your bot with öäü or other.

Expected behavior working?

Operating Environment (please complete the following information):

Is it possible to use non-ASCII characters?

mlmnetcologne commented 5 years ago

If you also run in this Error: Upgrade to pip3 (and python3) install python3-pip && pip3 install mmpy_bot know it should work.

More: https://stackoverflow.com/questions/21129020/how-to-fix-unicodedecodeerror-ascii-codec-cant-decode-byte/21129492