When reading mustache template files assume UTF-8 encoding, fixes #4544. (#4545)

This commit is contained in:
eblis 2017-01-12 18:11:07 +02:00 committed by wing328
parent 9bb58d2040
commit af4319015e

View File

@ -56,7 +56,7 @@ public abstract class AbstractGenerator {
if (is == null) {
is = new FileInputStream(new File(name)); // May throw but never return a null value
}
return new InputStreamReader(is);
return new InputStreamReader(is, "UTF-8");
} catch (Exception e) {
LOGGER.error(e.getMessage());
}