Details
Description
In case of writing groovlet scripts in UTF8 on Tomcat.
It's needed to specify "-Dfile.encoding=UTF8" in JAVA_OPTS.
Then messages in Japanese on Tomcat console are
garbling because of changing default file encoding.
On the other, there is the code getting the value of property
groovy.source.encoding in org.codehaus.groovy.control.CompilerConfiguration
but it is in constractor, "CompilerConfiguration(Properties configuration)."
It's seemed that default constractor of CompilerConfiguration
is used in all most cases. Hence setting of groovy.source.encoding
is ignored.
I wisth that default constractor of CompilerConfiguration would get the value of
groovy.source.encoding from system property.