Diagrams created via diagrams.net have broken special characters
Summary
When editing a wiki page and creating a diagram that contains special characters (e.g. "umlauts" as ä
, ö
, ü
, or €
) the characters are broken in the exported/stored SVG.
Steps to reproduce
- Open project wiki
- Create a new page
- Edit page in Markdown mode
- In the editor toolbar top right corner select "
Insert or edit diagram
" - In the
diagrams.net
editor create a text field with content like "ä ö ü €
" - Click
Save and exit
in the top right corner - Store under any filename
- Back in the wiki editor, switch to the "
Preview
"-tab - See that the umlauts "
ä ö ü €
" turned into gibberish:
Example Project
https://gitlab.com/PCSG-Jan/broken-special-characters-in-diagrams/-/wikis/home
What is the current bug behavior?
Special characters are incorrectly parsed/displayed in the output SVG.
What is the expected correct behavior?
The special characters should be displayed like in the diagram editor.
Relevant logs and/or screenshots
Displayed in the diagram Editor:
When using the "Export as... > SVG"-functionality of the diagrams editor, the special characters are correctly displayed.
I can reproduce this bug on GitLab.com and on our own omnibus installation.