[Mailman-Users] Character encoding for mass subscribtion?
Mark Sapiro
mark at msapiro.net
Tue Jun 25 19:38:00 CEST 2013
On 06/25/2013 05:46 AM, e.c. wrote:
>> Have a look at this link:
>>
>> http://www.divideandconquer.se/2009/08/17/convert-mailman-translation-to-utf-8/
>>
>> I don't understand the def _(s) function but since ascii is a subset of
>> utf-8, it's safe to use iconv going from ascii (or iso-8859-1) to utf-8.
The def _(s) was copied from Defaults.py and is a device for allowing
the strings representing the language names to be seen as needing i18n,
but not translating them too soon.
Putting something like
def _(s):
return s
add_language('sv', _('Swedish'), 'utf-8')
del _
in mm_cfg.py works, but is way to complicated. All that is needed is the
single line
add_language('sv', 'Swedish', 'utf-8')
>> Maybe all you needed was to add (or change) the line
>>
>> DEFAULT_CHARSET = 'utf-8'
>>
>> in mm_config.py.
That setting is historical and currently has no effect.
--
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-Users
mailing list