[Mailman-Developers] handling multi-byte characters in templates
JasonR.Mastaler
JasonR.Mastaler
Thu, 19 Sep 2002 17:49:13 -0600
When Mailman.Utils.maketext() does string substitution in a template
containing multi-byte characters (such as in templates/ja/), how does
it avoid errors during dictionary interpolation?
TMDA is using a nearly identical function to make text from templates,
but certain multi-byte characters (Japanese in particular) in the
templates trigger the following exceptions:
ValueError: incomplete format key
TypeError: not enough arguments for format string
Someone suggested that the Japanese text probably has characters in it
that include an ascii % as part of the multi-byte character.
I'm wondering how Mailman gets around this problem.
--
(http://tmda.net/)