I'm building a java application on JDK 21, all files seemingly being UTF-8 encoded (it says on the bottom right ), but I can't programatically set the text value of a JavaFX UI element to anything containing special characters like "äöüß". It displays them like "ÜÜÜÃ".
Hardcoded values in the FXML-file are displayed correctly though.
I can't find a solution for this, except for replacing every special character with the Unicode escape sequence, but I'd assume there's a better solution.