Changes between Initial Version and Version 6 of Ticket #12422


Ignore:
Timestamp:
09/07/2012 05:30:59 PM (3 years ago)
Author:
aaugustin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12422

    • Property Severity changed from to Normal
    • Property Cc bnomis@… added
    • Property Patch needs improvement unset
    • Property Needs tests unset
    • Property Easy pickings unset
    • Property Needs documentation unset
    • Property UI/UX unset
    • Property Type changed from to Bug
    • Property Triage Stage changed from Unreviewed to Accepted
  • Ticket #12422 – Description

    initial v6  
     1{{{
    12# Don't BASE64-encode UTF-8 messages so that we avoid unwanted attention from
    23# some spam filters.
    34Charset.add_charset('utf-8', Charset.SHORTEST, Charset.QP, 'utf-8')
     5}}}
    46
    57The above bit of code in django.core.mail overrides the standard Python behaviour for utf-8 in the Python email module. It would be better to set the charset by calling set_charset() on the Message before sending if needed rather than a global override. This behaviour and assumption is not documented anywhere in Django as far as I can tell. I think this is a case of the framework being a bit too clever. Not everyone using Django is using the django email sending methods nor wants Django to (silently) change the system defaults.
Back to Top