HTML Builder causes stomach when eating non-ascii charactor

SHIBUKAWA Yoshiki avatarSHIBUKAWA 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 (4)

  1. SHIBUKAWA Yoshiki

    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

        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'))

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

    • line 72 in sphinx/locale/ mod()
    • line 87 in sphinx/writers/ depart_desc_signature()
    • line 482 in sphinx/writers/ depart_title()
  2. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.