1
votes

Russian characters are shown correctly on the page but incorrectly displayed on the server side if send them from form. For example word игра transforms into игÑа. I have following lines in Config.groovy:

grails.views.gsp.encoding = "UTF-8"
grails.converters.encoding = "UTF-8"

And following line in the main layout view:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

What should i do to fix it?

1
@splix, POST ajax request. Embedded grails server. - tiktak

1 Answers

2
votes

The data “игÑа” results from UTF-8 encoded “игра” when misinterpreted as ISO-8859-1. It sounds like the HTTP headers specify ISO-8859-1 (or some similar 8-bit encoding); this overrides any meta tags.