diff --git a/src/common/GnuPG.py b/src/common/GnuPG.py index 4e281c71d..72c34a8f9 100644 --- a/src/common/GnuPG.py +++ b/src/common/GnuPG.py @@ -193,8 +193,10 @@ if gajim.HAVE_GPG: sline = line.split(':') if (sline[0] == 'sec' and secret) or \ (sline[0] == 'pub' and not secret): + # decode escaped chars + name = eval('"' + sline[9].replace('"', '\\"') + '"') # make it unicode instance - keys[sline[4][8:]] = helpers.decode_string(sline[9]) + keys[sline[4][8:]] = helpers.decode_string(name) return keys try: proc.wait() except IOError: pass