Skip to content

Commit

Permalink
Fixed emoticons.py to encode as utf8 string
Browse files Browse the repository at this point in the history
  • Loading branch information
boothj5 committed Mar 16, 2016
1 parent 5110af0 commit 5faccde
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions emoticons.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

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):
Expand Down

0 comments on commit 5faccde

Please sign in to comment.