• Julien Muchembled's avatar
    MailTemplates: more reliable encoding of headers · 03e60de1
    Julien Muchembled authored
    str.encode() first performs an implicit conversion to unicode using
    sys.getdefaultencoding(), which is usually 'ascii'. The 'isort' module
    changes the default encoding to utf-8, leading to UnicodeEncodeError
    instead of UnicodeDecodeError. Let's simplify all this.
    03e60de1
BaseMailTemplate.py 6.21 KB