sbidy / MacroMilter

This python based milter (mail-filter) checks an incoming mail for suspicious VBA macro code in MS 20xx Office attachments (doc, xls, ppt ...).
MIT License
37 stars 14 forks source link

Debian 10: Add default encoding (sys.setdefaultencoding) #64

Open rrroig opened 3 years ago

rrroig commented 3 years ago

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