Details
-
Type:
Wish
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.2 final
-
Fix Version/s: 2.3-M2
-
Component/s: Commons, View technologies
-
Labels:None
-
Environment:Mac OS X
Description
Hi guys
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
set JAVA_OPTS='-Dfile.encoding=UTF-8'
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 ?
Thanks !
Nicolas
--------------------
(from startGrails sh script)
startGrails() {
CLASS=$1
shift
JAVA_OPTS="-server -Xmx512M -XX:MaxPermSize=96m -Dfile.encoding=UTF-8 $JAVA_OPTS"
...
...
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits