1
0
Fork 1
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:
ptav 2024-10-03 14:03:59 +01:00 committed by GitHub
parent 5a050b0ca3
commit ea0cf58bf1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: