aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman')
-rw-r--r--Mailman/htmlformat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mailman/htmlformat.py b/Mailman/htmlformat.py
index 5d70ad28..2387096e 100644
--- a/Mailman/htmlformat.py
+++ b/Mailman/htmlformat.py
@@ -300,7 +300,7 @@ class Document(Container):
def Format(self, indent=0, **kws):
charset = 'us-ascii'
- if self.language:
+ if self.language and Utils.IsLanguage(self.language):
charset = Utils.GetCharSet(self.language)
output = ['Content-Type: text/html; charset=%s\n' % charset]
if not self.suppress_head: