#19107: Can't send unicode e-mail -------------------------------+-------------------------------------- Reporter: carneiro.be@… | Owner: nobody Type: Bug | Status: new Component: Core (Mail) | Version: master Severity: Normal | Resolution: Keywords: mail unicode | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+--------------------------------------
Comment (by carneiro.be@…): Hi claudep, thanks for the quick reply. My python version is Python 2.6.5. I haven't set FILE_CHARSET neither DEFAULT_CHARSET, so I assume it's utf-8. I'm going to set it manually and try again. sys.getdefaultencoding() returns 'ascii'. For the file I did this: file -i registration_email.txt registration_email.txt: text/plain; charset=utf-8. So I guess it should be okay. I've tried again setting FILE_CHARSET and DEFAULT_CHARSET to utf-8 but it still fails with the same stacktrace. If you want I can change the code to introduce any tests you wish. Many thanks again for the help. -- Ticket URL: <https://code.djangoproject.com/ticket/19107#comment:5> 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 https://groups.google.com/groups/opt_out.