English in UTF-8 [was: Does mailman 2.1.18 support hebrew language ?]
On Mailman-Users, Mark Sapiro writes:
- 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 .... :-)
Steve
On 01/09/2015 08:37 PM, Stephen J. Turnbull wrote:
On Mailman-Users, Mark Sapiro writes:
- 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@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mark Sapiro writes:
I feel your pain.
:-) It's possible to do something about it, though.
The short answer is Yes. Python's email package encodes things based on character set.
Thanks for the quick response. I'll take a look at this. At latest, I'll sprint on it. :-)
participants (2)
-
Mark Sapiro
-
Stephen J. Turnbull