sbidy/MacroMilter

Debian 10: Add default encoding (sys.setdefaultencoding)

Opened this issue · 0 comments

Hello
Thanks for this great code.
I had issues decoding attachments.
Adding the 2 lines shown below fixed the errors in Debian 10. (Python 2.7.16)

reload(sys)
sys.setdefaultencoding('UTF-8')

Best