[Zope3-Users] Re: UnicodeEncodeErrors from zope/app/maildir.py
Martijn Pieters
mj at zopatista.com
Wed Nov 29 07:46:41 EST 2006
On 11/29/06, Rupert Redington <rupert at neontribe.co.uk> wrote:
> Those are great pointers, thanks, but I still can't understand why
> zope.app.mail's MailDir functions want to encode the message using the
> 'ascii' encoding, nor does there seem to be any way to suggest a
> different encoding to the mail system.
Perhaps because emails can only be transferred as ASCII? You need to
encode the body of the email (and any headers) down to ASCII, see RFC
822 and friends. This is what mime encodings take care of, see the
'email' package in the python standard library.
--
Martijn Pieters
More information about the Zope3-users
mailing list