Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.5.4
-
Fix Version/s: 1.5.5, 1.6-beta-1
-
Component/s: Groovlet / GSP
-
Labels:None
-
Environment:jdk1.5,Debian/Linux,groovy1.5.4
-
Patch Submitted:Yes
-
Number of attachments :
Description
a test gsp file is (chinese encoding):
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>测试页</title>
</head>
<body>
<%
print "groopvy 测试页"
%>
</body>
</html>
After browser the groovy.servlet.TemplateServlet source code,I find that the service method only set the ContentType to "text/html" .There no information about encoding.
So I add the encoding support for it,you can see the attachment(diff format),and you can configure it throgh the web.xml
Attachments
Issue Links
| This issue is duplicated by: | ||||
| GROOVY-1276 | GroovyServlet lacks possibility to specify encoding |
|
|
|
Actually the GroovyServlet has the same problem,so I readjust the code,please see the attachment.