mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-09 22:38:19 +02:00
Partially handles iso-8859-8-i encoding
Casts it to iso-8859-8 but message will still create challenges downstream where it gets treated as pure ASCII while generating a warning
This commit is contained in:
parent
5a050b0ca3
commit
ea0cf58bf1
1 changed files with 2 additions and 0 deletions
|
|
@ -78,6 +78,8 @@ def convert_header_to_unicode(header):
|
|||
return value
|
||||
if not encoding or encoding == 'unknown-8bit':
|
||||
encoding = default_charset
|
||||
elif encoding == 'iso-8859-8-i':
|
||||
encoding = 'iso-8859-8'
|
||||
return value.decode(encoding, 'replace')
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue