handling multi-byte characters in templates
19 Sep
2002
19 Sep
'02
4:49 p.m.
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/)
7858
Age (days ago)
7862
Last active (days ago)
4 comments
2 participants
participants (2)
-
Jason R. Mastaler
-
Tokio Kikuchi