#17536: Filename encoding broken for attachments in EmailMessage class -------------------------+------------------------------------------------- Reporter: alexey | Owner: nobody Type: Bug | Status: new Component: Core | Version: SVN (Mail) | Keywords: EmailMessage, broken encoding, Severity: Normal | unicode, i18n Triage Stage: | Has patch: 0 Unreviewed | UI/UX: 0 Easy pickings: 0 | -------------------------+------------------------------------------------- Message encoding broken if creating messages with EmailMessage class.
Test case: {{{#!python subject = u"Тест" body = u"Тест" recepients = ["t...@test.com"] filename = u"тест.txt" report = "some binary data" email = EmailMessage(subject,body,to=recepients) email.attach(filename.encode("utf-8"),report) email.send() }}} filename will NOT be properly encoded and pushed into the message "as is". And some email clients such as MS Outlook will show broken stuff instead of filename. -- Ticket URL: <https://code.djangoproject.com/ticket/17536> 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 post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.