Pb accented characters in TOC

Joplin for Desktop**
Copyright © 2016-2020 Laurent Cozic**
Joplin 1.0.197 (prod, darwin)**
Sync Version: 1*
Profile Version: 28**
Révision : 719afba (master)**

Hi everybody I a pb with TOC when I exporte to PDF, the link in to header is broken if I have accented characters.

for exemple :

écran 1-----the link is broken

ecran 1---- the link is correct

For your information I have the same problem on win10.

Thanks in advance for your help.

Best regards.
Arnaud.

I can confirm this. The following test note works perfectly in Joplin. Jumping to any of the headings works, but when creating a PDF, the first 3 headings don’t have a link.
It’s a bit strange though, since the link with the unicode character (the last one) works without issues.

[toc]

# 日本語のテキスト

Text<br><br><br><br><br><br><br><br><br>

# Немного текста на русском

Text<br><br><br><br><br><br><br><br><br>

# et voilà

Text<br><br><br><br><br><br><br><br><br>

# heading (special)

Text<br><br><br><br><br><br><br><br><br>

# another @ char

Text<br><br><br><br><br><br><br><br><br>

# a lot of special characters !@#$%^&*

Text<br><br><br><br><br><br><br><br><br>

# test !

Text<br><br><br><br><br><br><br><br><br>

# test %

Text<br><br><br><br><br><br><br><br><br>

# unicode 🔥 character

Text<br><br><br><br><br><br><br><br><br>

---
<br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br>

For it's a big pb because I make a notes in French.
The first not working an de second I don't have any problems
because I don't have the character é

You can test this:

[[toc]]

Implémentation des équipements :bulb:

_SETUP ELEMENT dans machine configurator

I’m pretty sure Laurent also uses French. I can add a French accent to my test as well, but I thought it was not necessary, since it already shows the problem at hand.
But, I’ve changed the test file…

Ok thanks a lot, I hope you’ll find a solution I think the problem is in TOC command.

Best regards.

It could be a combination of a few things actually. Currently I have no clue what’s going on. Maybe Laurent has an idea.
But I’m sure, we’ll figure it out somehow.

Hier do you have any news aboutit this ?
Best regards.

Arno

I looked into it, but haven’t found the problem yet. The HTML that is created in the app (and when exporting the note) is valid and works.

I’m currently investigating if the Electron framework is the culprit. However, I’m more than happy to accept any help in this.

I have now tested with Electron 7.1.14, 7.2.1, and 8.2.0. Same result for all of them: the first three links don’t work.

Here’s the Electron Fiddle.

I really have no idea why this does not work.