• R David Murray's avatar
    Merge #14291: if a header has non-ascii unicode, default to CTE using utf-8 · e2922835
    R David Murray yazdı
    In Python2, if a unicode string was assigned as the value of a header,
    email would automatically CTE encode it using the UTF8 charset.
    This capability was lost in the Python3 translation, and this patch
    restores it.
    
    Patch by Ali Ikinci, assisted by R. David Murray.
    
    I also added a fix for the mailbox test that was depending (with a comment
    that it was a bad idea to so depend) on non-ASCII causing message_from_string
    to raise an error.  It now uses support.patch to induce an error during
    message serialization.
    e2922835
To find the state of this project's repository at the time of any of these versions, check out the tags.
NEWS 308 KB