Grails default configuration in Config.groovy is to use UTF-8 for GSP.
When you put a simple HTML page in your web-apps project, that defines UTF-8, is encoded as UTF-8, well it does not work with Grails on Mac OS X. Grails uses the default platform encoding (Mac Roman). The solution is easy : we need to specify the file encoding as a JVM parameter when the application starts.
To solve the issue, one has to manually force the following JAVA_OPTS so that Grails handles correctly those files
Then when you launch Grails, it works like a charm.
However here is my request:
Can you add "-Dfile.encoding=UTF-8" in the startGrails SHELL script ? and also in the Windows bat script please ?
(from startGrails sh script)
JAVA_OPTS="-server -Xmx512M -XX:MaxPermSize=96m -Dfile.encoding=UTF-8 $JAVA_OPTS"