From ef1fdbc3992f5fdc073faf7d707379c926f9d5e6 Mon Sep 17 00:00:00 2001 From: Ross Poulton Date: Wed, 2 Feb 2011 08:02:39 +0000 Subject: [PATCH] Fix an issue with decoding of some unicode subjects. THanks to pistolero for reviewing the previous patch and providing a fix. --- helpdesk/management/commands/get_email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/management/commands/get_email.py b/helpdesk/management/commands/get_email.py index 05fd34ce..500fb0f1 100644 --- a/helpdesk/management/commands/get_email.py +++ b/helpdesk/management/commands/get_email.py @@ -133,7 +133,7 @@ def decodeUnknown(charset, string): return string.decode('utf-8') except: return string.decode('iso8859-1') - return unicode(string) + return unicode(string, charset) def decode_mail_headers(string): decoded = decode_header(string)