diff options
| author | amenohi <amenohi@gmail.com> | 2010-11-18 16:44:41 +0900 |
|---|---|---|
| committer | amenohi <amenohi@gmail.com> | 2010-11-18 16:44:41 +0900 |
| commit | 5822696418480ec271b24ee998f6ae63d47de1b0 (patch) | |
| tree | 4ee395954e8988ef961b2b2f96a622b9fd0cae5a | |
| parent | b9def3d647aae17008cbce9267a0bfbd8b2a2701 (diff) | |
| download | sphinx-5822696418480ec271b24ee998f6ae63d47de1b0.tar.gz | |
Fix garbled HTML Help keywords.
| -rw-r--r-- | sphinx/builders/htmlhelp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/builders/htmlhelp.py b/sphinx/builders/htmlhelp.py index 848068e5..dd6edfdd 100644 --- a/sphinx/builders/htmlhelp.py +++ b/sphinx/builders/htmlhelp.py @@ -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) |
