Daniel Woods
2011-07-12 01:50:29 UTC
Hi Everyone,
I realize that this issue has been brought up several times, but I
definitely need some help... I have tried everything that is
recommended in all the docs and lists and previous emails from this
list on the subject.
I have a mysql database that has been created with the charset=utf8. I
have ensured that /etc/my.cnf is properly configured with utf8 and
utf8_general_ci values on the "default-character-set" and
"default-collation" directives respectively. My MySQL JDBC URL string
contains the "useUnicode=true" and "characterEncoding=utf8"
parameters. My Config.groovy contains the "grails.views.gsp.encoding"
and "grails.converters.encoding" parameters with both set to "UTF-8".
I have confirmed that the data in the database is UTF-8 encoded data
and is thereby not dirty. I've done this by 1) performing a simple
command-line dump of a column containing UTF-8 encoded characters into
a file; and 2) attached the old Ruby on Rails app to the database (I
am converting the app from RoR to Grails), and it renders the UTF-8
characters to the browser just fine. I can definitely confirm that
Grails rendering the UTF-8 characters with Latin1 (ISO-8859-1)
encoding. The characters: æ are rendered instead of æ ... I have
tried setting the contentType and characterEncoding parameters on the
response object, both in the view and in the controller... Nothing
works. I've even taken a more Java-esque approach and tried to create
a properly encoded String object using the data I'm getting back from
the database. It is almost as though the MySQL JDBC library is not
properly respecting the useUnicode and characterEncoding parameters.
I don't know what else to try... What can I do here?
Thanks in advance.
Dan
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
I realize that this issue has been brought up several times, but I
definitely need some help... I have tried everything that is
recommended in all the docs and lists and previous emails from this
list on the subject.
I have a mysql database that has been created with the charset=utf8. I
have ensured that /etc/my.cnf is properly configured with utf8 and
utf8_general_ci values on the "default-character-set" and
"default-collation" directives respectively. My MySQL JDBC URL string
contains the "useUnicode=true" and "characterEncoding=utf8"
parameters. My Config.groovy contains the "grails.views.gsp.encoding"
and "grails.converters.encoding" parameters with both set to "UTF-8".
I have confirmed that the data in the database is UTF-8 encoded data
and is thereby not dirty. I've done this by 1) performing a simple
command-line dump of a column containing UTF-8 encoded characters into
a file; and 2) attached the old Ruby on Rails app to the database (I
am converting the app from RoR to Grails), and it renders the UTF-8
characters to the browser just fine. I can definitely confirm that
Grails rendering the UTF-8 characters with Latin1 (ISO-8859-1)
encoding. The characters: æ are rendered instead of æ ... I have
tried setting the contentType and characterEncoding parameters on the
response object, both in the view and in the controller... Nothing
works. I've even taken a more Java-esque approach and tried to create
a properly encoded String object using the data I'm getting back from
the database. It is almost as though the MySQL JDBC library is not
properly respecting the useUnicode and characterEncoding parameters.
I don't know what else to try... What can I do here?
Thanks in advance.
Dan
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email