Problems with email.Generator.Generator
Gerard Flanagan
grflanagan at yahoo.co.uk
Mon Sep 11 12:06:55 EDT 2006
Chris Withers wrote:
>
> Now, I want to know what I'm supposed to do when I have unicode source
> and want it to end up as either a text/plain or text/html mime part.
>
> Is there a how-to for this anywhere? The email package's docs are short
> on examples involving charsets, unicode and the like :-(
no expert in this, but have you tried the codecs module?
http://docs.python.org/lib/codec-objects.html
( with 'xmlcharrefreplace' for the html )?
Gerard
More information about the Python-list
mailing list