Grails开发常见问题【持续整理中,更新日期:2009年4月7日】
1、关于Grails链接Mysql数据库中文乱码问题
请看这里:[转载]让Grails + MySQL正确处理中文 - 蛟龍居 – BlogJava
注意,里面的Mysql连接串:jdbc:mysql://server?useUnicode=true&characterEncoding=UTF-8
该符号必须为:&,不能像有些网站介绍的写成这样:&
2、Grails与FCKEditor的集成
请看这里:http://space.sea3c.com/index.php/49409/viewspace-1101.thysea
注意: 显示内容的时候用
<fck:editor id=’content’ name=’content’ height="400" >${article.content}</fck:editor>
而不是
<fck:editor id=’content’ name=’content’ height="400" >
${fieldValue(bean:article, field:’content’)}
</fck:editor>
