After grails upgrade from 2.2.3 to 2.3.6 I got wrong encoding for scaffold pages For usual pages all is ok:
Content-Type:text/html;charset=UTF-8
Same layout template used, but for scaffold page:
Content-Type:text/html;charset=ISO-8859-1
Config.groovy:
grails.views.default.codec = "html" // none, html, base64
grails.converters.encoding = "UTF-8"
grails {
views {
gsp {
encoding = 'UTF-8'
htmlcodec = 'xml' // use xml escaping instead of HTML4 escaping
codecs {
expression = 'html' // escapes values inside ${}
scriptlet = 'html' // escapes output from scriptlets in GSPs
taglib = 'none' // escapes output from taglibs
staticparts = 'none' // escapes output from static template parts
}
}
}
}
layout:
<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
<meta charset="utf-8"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
In new test application all work correctly.
Where I can find response encoding settings?