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="&epsilon;&lambda;&lambda;&eta;&nu;&iota;&kappa;ό &tau;&epsilon;&sigma;&tau;"/>   </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

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -