Issues

Issue #422 resolved

HTML Builder causes stomach when eating non-ascii charactor

SHIBUKAWA Yoshiki
created an issue

HTML builder was down when using Japanese source file. This files can be accepted when rev.2130. It is occured when "make html" and "make singlehtml".

The error point is differenct from "#421"

Comments (5)

  1. SHIBUKAWA Yoshiki reporter

    Error was occurred at string formatting with % operators.

    There are points cause of errors. You can escape error to add unicode function call with encoding like this(you should proper encoding from conf.py):

        def depart_desc_signature(self, node):
            if node['ids'] and self.add_permalinks and self.builder.add_permalinks:
                self.body.append(u'<a class="headerlink" href="#%s" '
                                 % node['ids'][0] +
                                 u'title="%s">\u00B6</a>' %
                                 unicode(_('Permalink to this definition'), 'utf-8'))
            self.body.append('</dt>\n')
    

    I am searching the positions. Following list is under examination:

    • line 72 in sphinx/locale/init.py: mod()
    • line 87 in sphinx/writers/html.py: depart_desc_signature()
    • line 482 in sphinx/writers/html.py: depart_title()
  2. Log in to comment