From e58130611d459be5ff41c52828021904d329e1c6 Mon Sep 17 00:00:00 2001 From: Jean-Marie Traissard Date: Tue, 16 May 2006 18:49:34 +0000 Subject: [PATCH] Deal with non utf8 status messages in change status message dialog --- src/dialogs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dialogs.py b/src/dialogs.py index c15e473a9..da4b4dc4b 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -349,6 +349,8 @@ class ChangeStatusMessageDialog: msg_text = helpers.to_one_line(status_message_to_save_as_preset) if not msg_name: # msg_name was '' msg_name = msg_text + msg_name = msg_name.decode('utf-8') + msg_text = msg_text.decode('utf-8') iter_ = self.message_liststore.append((msg_name,)) gajim.config.add_per('statusmsg', msg_name)