From 26d8624377534726d44c60f960d47d6ef927c5c0 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger <asterix@lagaule.org> Date: Sun, 8 Feb 2009 09:56:38 +0000 Subject: [PATCH] [Zod] convert GPG decrypted string to unicode. Fixes #4788 --- src/common/connection_handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index 637c80a5d2..9ac8dc2c74 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -1857,7 +1857,7 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco, def decrypt_thread(encmsg, keyID): decmsg = self.gpg.decrypt(encmsg, keyID) # \x00 chars are not allowed in C (so in GTK) - msgtxt = decmsg.replace('\x00', '') + msgtxt = helpers.decode_string(decmsg.replace('\x00', '')) encrypted = 'xep27' return (msgtxt, encrypted) gajim.thread_interface(decrypt_thread, [encmsg, keyID], -- GitLab