Issues

Issue #434 wontfix

rst_epilog in conf.py with non-ASCII chars

Jan Ulrich Hasecke
created an issue

When I put this in conf.py:

{{{

!python

rst_epilog = """ .. |kk| replace:: Krzysztof Kieślowski """

}}}

I get this error:

{{{

!python

make html sphinx-build -b html -d _build/doctrees . _build/html Running Sphinx v0.6.5 WARNING: the config value 'rst_epilog' is set to a string with non-ASCII characters; this can lead to Unicode errors occurring. Please use Unicode strings, e.g. u"Content". loading translations [de]... done loading pickled environment... done building [html]: targets for 0 source files that are out of date updating environment: [config changed] 42 added, 0 changed, 0 removed reading sources... [ 2%] Analyse/Dauer
Sphinx error: 'ascii' codec can't decode byte 0xc5 in position 34: ordinal not in range(128) make: *** [html] Error 1

}}}

Comments (5)

  1. Georg Brandl repo owner

    That is not a unicode string, but a unicode escape for use within a unicode string. A unicode string is prefixed with "u", for example:

    rst_epilog = u"""
    .. |kk| replace:: Krzysztof Kieślowski
    """
    
  2. Log in to comment