SMTPHandler and Unicode

Vinay Sajip vinay_sajip at yahoo.co.uk
Tue Jul 6 13:22:04 EDT 2010


norbert <ncauderan <at> gmail.com> writes:

> 
> crash with a UnicodeError. I can't see any workaround, except by
> subclassing SMTPHandler's emit method to be unicode-aware or at least
> URF-8 aware.
> 


Well, you could use an approach like the one suggested here:

http://plumberjack.blogspot.com/2010/07/using-custom-formatter-to-deal-with.html








More information about the Python-list mailing list