The problem is that when i to save the data(in greek) on the server the title field data look’s like this ??????????? but it must be Καλώς ορίσατε.
ControllerCode
@Secured(['ROLE_EDITOR'])
def saveArticle = {
def member = springSecurityService.currentUser
if(request.post){
params.member = member
def post = new Post(params)
if(post.save())
{
redirect(action: "page",id: post.id)
}
else
{
return post.errors
}
}
else
{
redirect(action: "addArticle")
}
}
Post domain class
class Post {
String title
String body
Members member
Date created_at = new Date()
static constraints = {}
}
the strange is that the field body returns correctly greek language and not like title.
the answer is jdbc:mysql://localhost/dev?useUnicode=yes&characterEncoding=UTF-8
the ?useUnicode=yes&characterEncoding=UTF-8 in the connection string..