diff options
author | Ryan Huber <rhuber@gmail.com> | 2016-06-17 07:56:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-17 07:56:23 -0700 |
commit | 57725fe24b04fb1fa4f7b209f2ddafb42433f120 (patch) | |
tree | 32f053031fb1aa23b6fd82b5c1e56cbbed4a73fb | |
parent | e74ece931ed4ad44673f5add6680f32cadc04238 (diff) | |
parent | 64827d5b312397a4b33141dbfc74e4756ea0b176 (diff) | |
download | wee-slack-57725fe24b04fb1fa4f7b209f2ddafb42433f120.tar.gz |
Merge pull request #221 from bendem/fix/utf8-topic
Encode topics in utf-8, not ascii
-rw-r--r-- | wee_slack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index 5b0adaf..cdf15c6 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -548,7 +548,7 @@ class Channel(object): return " ".join(message) def set_topic(self, topic): - topic = topic.encode('ascii', 'ignore') + topic = topic.encode('utf-8') w.buffer_set(self.channel_buffer, "title", topic) def open(self, update_remote=True): |