Re: [Python-Dev] email header encoding

2009-04-11 Thread Stephen J. Turnbull
Chris Withers writes: > When is it even a good idea to have more than one encoding in a single > header? I'd be happy to discuss that on email-sig, but it's really OT for Python-Dev at this point. ___ Python-Dev mailing list Python-Dev@python.org htt

Re: [Python-Dev] email header encoding

2009-04-11 Thread Chris Withers
Stephen J. Turnbull wrote: Robert Brewer writes: > Syntactically, there's no sense in providing: > > Message.set_header('Subject', 'Some text', encoding='utf-16') > > ...since you could more clearly write the same as: > > Message.set_header('Subject', 'Some text'.encode('utf-16