#20371: mail_admins should support strings as arguments
-------------------------------+--------------------------------------
Reporter: anonymous | Owner: nobody
Type: Uncategorized | Status: closed
Component: Core (Mail) | Version: 1.5
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by russellm):
* status: new => closed
* needs_better_patch: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_docs: => 0
Comment:
You're only getting a unicode decode error here because you've put unicode
content into a byte string.
If you use:
{{{
subject = u'Über"
}}}
i.e., you correctly identify the string as unicode, you won't get an
error. `mail_admin()` handles unicode content just fine. What you've
described here is a simple case of Garbage In, Garbage Out.
--
Ticket URL: <https://code.djangoproject.com/ticket/20371#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.