From 379e5c40281c0a9445f1d1ce1d726a8de2e3d2ae Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Wed, 24 Aug 2005 12:26:14 +0000 Subject: [PATCH] fix possible tb --- src/groupchat_window.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/groupchat_window.py b/src/groupchat_window.py index 103bdd611..6ccc3697a 100644 --- a/src/groupchat_window.py +++ b/src/groupchat_window.py @@ -695,6 +695,8 @@ class GroupchatWindow(chat.Chat): """Print a line in the conversation: if contact is set: it's a message from someone if contact is not set: it's a message from the server""" + if type(text) == unicode: + text = text.encode('utf-8') other_tags_for_name = [] other_tags_for_text = [] if contact: