aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2016-06-17 07:56:23 -0700
committerGitHub <noreply@github.com>2016-06-17 07:56:23 -0700
commit57725fe24b04fb1fa4f7b209f2ddafb42433f120 (patch)
tree32f053031fb1aa23b6fd82b5c1e56cbbed4a73fb /wee_slack.py
parente74ece931ed4ad44673f5add6680f32cadc04238 (diff)
parent64827d5b312397a4b33141dbfc74e4756ea0b176 (diff)
downloadwee-slack-57725fe24b04fb1fa4f7b209f2ddafb42433f120.tar.gz
Merge pull request #221 from bendem/fix/utf8-topic
Encode topics in utf-8, not ascii
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py2
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):