Open peritus opened 7 years ago
@peritus Actually, I've noticed that for my emails, the encoding is 'latin-1'
instead of 'utf-8'
. Any chance you could add an encoding='utf-8'
default parameter to the method and then change the decoding step to read:
body = decode(encoded_body, 'quopri_codec').decode(encoding)
Thanks, Andrew
Thank you, @peritus. Would you please fill in the CLA located here: https://goo.gl/forms/QMyqXJI2LM. Thanks.
Is there any update since May 21?
Is there any update since May 21?
If you need this fix, you can try using https://github.com/lasselindqvist/robotframework-imaplibrary2 / https://pypi.org/project/robotframework-imaplibrary2/
We're using Python 3.5 and we kept getting this error when parsing emails:
The attached code fixes that by using the
codecs
module [https://docs.python.org/3.6/library/codecs.html] to parse the quoted printable email bodies