When translating applications to other languages than English, it is common to have characters outside the English alphabet. Since JavaFX default to using ISO-8859-1 when loading a resource bundle, it means that you would have to escape these characters using \uXXXX when doing the translation. A better option would be to expand the @FXMLView-annotation to take an optional parameter encoding so that the correct encoding for the resource bundle can be specified.
When translating applications to other languages than English, it is common to have characters outside the English alphabet. Since JavaFX default to using ISO-8859-1 when loading a resource bundle, it means that you would have to escape these characters using
\uXXXX
when doing the translation. A better option would be to expand the@FXMLView
-annotation to take an optional parameterencoding
so that the correct encoding for the resource bundle can be specified.Current translation (
example_sv.properties
):Current apperance (without escaping characters):
With escaped characters (
example_sv.properties
):Apperance when escaped: