The generated PDF from a wiki page has some page internal links to sections missing.
=== Steps to reproduce
# Go to https://fr.wikiquote.org/wiki/Michel_Henry
# Generate the PDF using the link "Télécharger comme PDF".
# Download and open the PDF.
# Observe that in the resulting PDF, some entries in the table of contents are not links.
=== Actual
These ToC entries (plus more) are not links (some problematic characters are emphasized):
* Ph//é//nom//é//nologie mat//é//rielle, 1990
* Gabrielle Dufour-Kowalska, philosophe fran//ç//aise (1939-2015)
* Rolf K//ü//hn, philosophe allemand (1944- )
=== Expected
All ToC entries should be links.
=== Initial investigation
We can reproduce this by simply opening [[ https://fr.wikiquote.org/wiki/Michel_Henry | this page ]] in a Chromium-based browser (I've tried Chrome and Brave so far), right-click, Print..., print as PDF. (BTW, there are not even any links generated when using Firefox).
There are issues with the ToC links containing accented characters and umlauts.
[[ https://test.wikipedia.org/wiki/PDF-ToC | reduced test case wiki page ]].
```lang=html, lines=7, name=Minimal test case in HTML
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<ul>
<li><a href="#section1Ü">Section 1 Ü</a></li>
<li><a href="#section2é">Section 2 é</a></li>
<li><a href="#section3(">Section 3 (</a></li>
<li><a href="#section4'">Section 4 '</a></li>
</ul>
<div style="height: 150px"></div>
<h2 id="section1Ü">Section 1 Ü</h2>
Missing link
<h2 id="section2é">Section 2 é</h2>
Missing link
<h2 id="section3(">Section 3 (</h2>
Has link
<h2 id="section4'">Section 4 '</h2>
Has link
</body>
</html>
```