[Mailman-Developers] English in UTF-8 [was: Does mailman 2.1.18 support hebrew language ?]
mark at msapiro.net
Sat Jan 10 05:59:40 CET 2015
On 01/09/2015 08:37 PM, Stephen J. Turnbull wrote:
> On Mailman-Users, Mark Sapiro writes:
> > 3) You can set Mailman's character set for English to utf-8 by putting
> > add_language('en', 'English (USA)', 'utf-8')
> > in mm_cfg.py (and restarting Mailman). The downside of this is the
> > bodies of Mailman generated messages including plain digests will be
> > base64 encoded and will not be readable by non-MIME aware MUAs.
> Does Mailman 3/Python 3 have this limitation?
> (One of my MUAs is grep .... :-)
I feel your pain.
The short answer is Yes. Python's email package encodes things based on
character set. It chooses between Quoted Printable, base64 or whichever
gives the shorter result based on the dictionary at
email.charset.CHARSETS which maps charset names to a tuple of
(header_encoding, body_encoding, output_codec) for utf-8 this is
(SHORTEST, BASE64, 'utf-8')
See email/charset.py for details.
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Developers