grails encoding in html attributes -
everything working fine greek characters except greek characters included in html attributes.
grails: 1.3.7 config.groovy:
grails.views.default.codec = "none" // none, html, base64 grails.views.gsp.encoding = "utf-8" grails.converters.encoding = "utf-8"
my test html page following:
<%@ page contenttype="text/html;charset=utf-8" %> <html> <head> <title>test title</title> <meta name="keywords" content="ελληνικό τεστ"/> </head> <body> greek test encoding </body> </html>
the response of server is:
<html> <head> <title>test title</title> <meta name="keywords" content="ελληνικό τεστ"/> </head> <body> greek test encoding </body> </html>
why cannot display greek characters inside content attribute ??
try set config.groovy's grails.views.default.codec='html' html escaping default in application.
if want set default codec page only:
<%@page defaultcodec="html" %>
there information in grails-2945 , grails-1827
Comments
Post a Comment