Fix garbled HTML Help keywords.

This commit is contained in:
amenohi
2010-11-18 16:44:41 +09:00
parent 0a9f5a058a
commit 9be3dc6cda

View File

@@ -258,7 +258,7 @@ class HTMLHelpBuilder(StandaloneHTMLBuilder):
def write_index(title, refs, subitems):
def write_param(name, value):
item = ' <param name="%s" value="%s">\n' % (name, value)
f.write(item.encode('ascii', 'xmlcharrefreplace'))
f.write(item.encode(self.encoding, 'xmlcharrefreplace'))
title = cgi.escape(title)
f.write('<LI> <OBJECT type="text/sitemap">\n')
write_param('Keyword', title)