UnicodeEncodeError when unicode characters present in To/From/Cc and also a comma is present
|Reported by:||anonymous||Owned by:||nobody|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
This address will work fine: "Joe Blöggs" <joe.bloggs@…>
However, this address will fail: "Blöggs, Joe" <joe.bloggs@…>
The reason is because Django is doing a simple val.split(",") instead of proper parsing of the addresses.
Bug location: django/core/mail.py:forbid_multi_line_headers line 82 (In 1.0.2 at least)
It's also present in the dev version!
Change History (8)
comment:1 Changed 7 years ago by
|Patch needs improvement:||unset|
|Triage Stage:||Unreviewed → Design decision needed|