Re: Converting to quoted printable encoding
Oleg Broytmann <[email protected]>
| Newsgroups | gmane.comp.python.mime.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Sep 24, 2008 at 08:25:37PM +0100, Nicholas Cole wrote:
> but what is "The Right Way"(TM)
> to change the encoding of text?
Why not to allow email to choose the best suited encoding? Wel, you may
change the idea of "best" by setting encoders for your charset; this is how
I do it:
Charset.add_charset("koi8-r", Charset.BASE64)
If you want quted-printable for both headers and body, call
Charset.add_charset("koi8-r", Charset.QP, Charset.QP)
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ [email protected]
Programmers don't die, they just GOSUB without RETURN.