mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-06-22 18:41:44 +02:00
Fix an issue with decoding of some unicode subjects. THanks to pistolero for reviewing the previous patch and providing a fix.
This commit is contained in:
parent
8435a665b1
commit
ef1fdbc399
@ -133,7 +133,7 @@ def decodeUnknown(charset, string):
|
|||||||
return string.decode('utf-8')
|
return string.decode('utf-8')
|
||||||
except:
|
except:
|
||||||
return string.decode('iso8859-1')
|
return string.decode('iso8859-1')
|
||||||
return unicode(string)
|
return unicode(string, charset)
|
||||||
|
|
||||||
def decode_mail_headers(string):
|
def decode_mail_headers(string):
|
||||||
decoded = decode_header(string)
|
decoded = decode_header(string)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user