JavaFX - Setting text values with special characters programatically

65 views Asked by At

I'm building a java application on JDK 21, all files seemingly being UTF-8 encoded (it says on the bottom right enter image description here), 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.

0

There are 0 answers