UnicodeDecodeError in POP3 source when email encoding is ISO8859-2
I can still (mayanedms/mayanedms:3.2.3
) trigger a UnicodeDecodeError
in a POP3 source, by sending an email with character encoding ISO-8859-2
and non-ascii characters in the body , e.g. Ä
(didn't try with subject, probably same behavior).
If the email uses UTF-8 it works.
The error message is Error processing source: 'ascii' codec can't decode byte 0xc4 in position 0: ordinal not in range(128)
.
I could dig deeper into it and fix it, but I think it would make more sense to invest that time to switch the Docker image to Python 3, and get rid of this class of errors once and for all.
This is then still going to affect bare-metal installations with Python 2, but how many of those are going to receive emails with special characters that are not in UTF-8? So I think it would make more sense not to pursue this now, and only tackle it if others that can't use the Docker image encounter the issue.
What do you think?