From 5faccde200050a33b45ac24dea765f48229cf90e Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 16 Mar 2016 20:32:34 +0000 Subject: [PATCH] Fixed emoticons.py to encode as utf8 string --- emoticons.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/emoticons.py b/emoticons.py index 1e8f522..5bd1a4f 100644 --- a/emoticons.py +++ b/emoticons.py @@ -2,10 +2,10 @@ import prof def _emote(input_str): result = input_str - result = result.replace(":-)", u'\u263a') - result = result.replace(":)", u'\u263a') - result = result.replace(":-(", u'\u2639') - result = result.replace(":(", u'\u2639') + result = result.replace(":-)", u'\u263a'.encode("utf-8")) + result = result.replace(":)", u'\u263a'.encode("utf-8")) + result = result.replace(":-(", u'\u2639'.encode("utf-8")) + result = result.replace(":(", u'\u2639'.encode("utf-8")) return result def prof_pre_chat_message_display(jid, message):