[Zod] convert GPG decrypted string to unicode. Fixes #4788

This commit is contained in:
Yann Leboulanger 2009-02-08 09:56:38 +00:00
parent a4f9764f21
commit 26d8624377
1 changed files with 1 additions and 1 deletions

View File

@ -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],