#17 — UnicodeDecodeError sending mail whit special characters into title
by
Mirco Angelini
—
last modified
Oct 05, 2011 12:44 PM
| State | Unconfirmed |
|---|---|
| Version: |
—
|
| Area | Functionality |
| Issue type | Bug |
| Severity | Medium |
| Submitted by | Mirco Angelini |
| Submitted on | Feb 28, 2011 |
| Responsible |
—
|
| Target release: |
—
|
If I use some special characters (eg: èàòù) into title of issue is obtained an UnicodeDecodeError during the send.
- Steps to reproduce:
- send an issue with special characters into title
Added by
Régis Rouet
on
Oct 05, 2011 12:43 PM
in bpi-rouet-2011-09 branch, I fixed this this way :from email.Header import Header
from_header = Header(unicode(sender_name, charset))
from_header.append('<%s>' % unicode(sender_email, charset))
subject_header = Header(unicode(subject, charset))
outer['To'] = Header('<%s>' % unicode(receiver['email'], charset))
No responses can be added.
If you can, please log in before submitting a reaction.
