encoding properties resources Jahia 7.3 Jahia 8 Legacy

resource property files are not encoded well


Why the properties in resources are not encoded well?

Example :

#Thu Jul 25 19:48:57 CEST 2019



The problem is in the file encoding itself. It is necessary, that all property files are encoded in ISO-8859-1 or ISO-8859-15. This is defined in jahia guidelines see:  Guidelines

You can easily check the encoding of your file with a simple linux command:

file -i /path/to/you/file.properties

and it must be ISO-8859-1 or -15 and for any characters that are not supported you can use the \uXXXX code as an alternative.

Related links