Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.7.0
-
None
-
None
Description
In method: groovy.servlet.TemplateServlet#getTemplate templates are loaded using encoding defined in system properties. Hence often you are not able to access server properties due to some security or deployment issues. Why there is not alternative option to set this encoding by servlet init parameter?
I wanted to go ahead and introduce the change requested - introduce an init parameter for "groovy.source.encoding"
If specified, groovy.source.encoding servlet init parameter will take preference, else it will fall back on the system property as it currently uses it.
Anyone sees any issues?