How do I decode unicode characters in the subject using email.message_from_string()?
Roy H. Han
starsareblueandfaraway at gmail.com
Wed Feb 25 10:17:22 EST 2009
Cool, it works!
Thanks, RDM, for stating the right approach.
Thanks, Steve, for teaching by example.
I wonder why the email.message_from_string() method doesn't call
On Wed, Feb 25, 2009 at 9:50 AM, <rdmurray at bitdance.com> wrote:
> Steve Holden <steve at holdenweb.com> wrote:
>> >>> from email.header import decode_header
>> >>> print
>> [('Inteum C/SR User Tip: Quick Access to Recently Opened Inteum C/SR
>> Records', 'us-ascii')]
> It is interesting that decode_header does what I would consider to be
> the right thing (from a pragmatic standpoint) with that particular bit
> of Microsoft not-quite-standards-compliant brain-damage; but, removing
> the tab is not in fact standards compliant if I'm reading the RFC
More information about the Python-list