I have 4 locales in my resources folder which I'm loading exactly as shown in this example: https://github.com/jtwig/jtwig-examples/blob/master/gradle-jtwig-translate-extension-properties/src/main/java/org/jtwig/example/translate/SimpleAppWithTranslate.java
However the properties are not loaded with the correct encoding.
E.g. the German Grüsse from the property file becomes Grüsse once loaded via Jtwig's PropertiesLocalizedMessageResourceLoader. It happens in this part of the example code:
propertiesMessageSource()
.withLookupClasspath("translations")
.build()
Is there an easy way to load the property files in UTF-8 using something like the code from the link above?
P.S. I'm using Java 11