3

I want to include accented characters in a Sphinx heading such that I will see the following result:

Finalé

I have tried the following strategies: Use the unicode character directly such as:

Finalé
======

but the character is considered invalid by Docutils.

Also, I have tried using the strip_html specification in conf.py along with the following text:

Finalé
==============

But the text is left unchanged and the HTML entity is passed through.

Can anyone suggest a way of handling accented characters in Sphinx that will work in all situations and where the final output may be HTML or Latex?

Jonathan
  • 2,635
  • 3
  • 30
  • 49
  • I cannot reproduce any problem. Having `Finalé` as a heading works fine. Do you get an error message? I also don't know what you mean by "`strip_html` specification". – mzjn Apr 26 '21 at 04:42
  • Is your file saved in UTF-8 and are on Python3? – Matt Warrick Apr 27 '21 at 07:18
  • Deleting the character é´ and re-typing it fixed the problem so it must have been with the keyboard or editor. – Jonathan Apr 29 '21 at 01:16

0 Answers0