[Therion] Compiling error due to encoding
Torsten Schnitter
torsten.schnitter at netcologne.de
Wed May 27 14:00:01 CEST 2026
Hello
I have a thconfig file where I use the statement "language de"/"language
en" to switch language for the output.
Within the config file I use some translations like this:
...
text de "point passage-height:unsigned" "Ganghöhe"
...
text en "point passage-height:unsigned" "passage height"
Every time I try to compile with "language de" I get an error:
#################### end of metapost log file ####################
converting scraps ... done
C:\Program Files\Therion\therion.exe: error -- Invalid utf-8 string!
writing xtherion file ... done
As soon as I switch back to "language en" it does work.
Therefore I'm pretty sure it is due to the special characters like 'ö'.
I opened the thconfig file with an external editor (Visual Studio Code),
removed the first line "encoding utf-8" and saved the file with encoding
"ISO 8859-1".
As soon as I open the thconfig file with XTherion and start compile the
format is resetted to utf-8 and within the thconfig file the first line
is replaced to "encoding utf-8" (checke this again with Visual Studio
Code". And the error above is the result.
Only opening the config file and closing again without any changes does
change the encoding line in the config file to utf-8.
I'm using Therion 6.4.0 and can't remeber when this behaviour/problem
raised.
I'm pretty sure some time ago this did work without error.
Any help is appreciated. Thanks in advance!
regards, Torsten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20260527/65ce39ae/attachment.htm>
More information about the Therion
mailing list