Note that there are some explanatory texts on larger screens.

plurals
  1. POSubmitting special characters, like "š č ć đ ž", over the webform in grails app
    text
    copied!<p>I'm developing grails app , connected to MySql database ... I have created database with utf-8 character set and with that collation ... also by default character-set is set to utf-8 on mysql server ... but I defined it explicitly for my schema</p> <p>In grails app I defined in Datasource.groovy </p> <pre><code>url = "jdbc:mysql://localhost:3306/blabla?useUnicode=true&amp;characterEncoding=utf-8" </code></pre> <p>also in Config.groovy</p> <pre><code>grails.views.gsp.encoding = "UTF-8" grails.converters.encoding = "UTF-8" </code></pre> <p>in my .gsp files I added </p> <pre><code>&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt; </code></pre> <p>So when I try to create new User via views/user/create.gsp , and in some field I input characters š, č, đ, ć, or ž ... the value inserted in database is something like ÄÄÄ ... but I want the value to be ččč</p> <p>When I insert new user through SQL statment in MySql Workbench , it is saved as I want it with field value "ččč" , when I load that user on my list.gsp, or show.gsp I can see in browser ččč ... </p> <p>So the problem is somewhere in the process when saving User via webform... Can anyone help ?</p> <p>P.S. I don't know if it is relevant, but when I type these characters in textfield on a webform I switch my keyboard from EN (English) to SR (Serbian Latin) in Language bar in Windows</p> <p>Grails 1.3.7</p> <p>STS 2.8.1</p> <p>mysql-connector-java-5.1.18</p> <p>Windows 7</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload