thymeleaf/thymeleaf — pull request #140 by pgaschuetz (2013-04-02 09:29:16+00:00)
Title: Fix character encoding in .properties

Hi,

java.util.Properties#load(InputStream inStream) assumes a character encoding of ISO 8859-1, whereas java.util.Properties#load(Reader reader) - or more specifically InputStreamReader(InputStream in) - uses the default encoding.

This simple patch makes Thymeleaf load .properties files in the default encoding, which can also be set by specifying ie. -Dfile.encoding=UTF-8

As stated above, Thymeleaf currently requires you to save your properties files in ISO 8859-1, which is really annoying if you use UTF-8 everywhere else, as it leaves you with a project with mixed file encodings and can also potentially be screwed up Mavens properties filtering.

I am aware, that this might break existing projects, but the current state is - IMHO - not really acceptable either.

Many thanks
Philipp