Reputation: 3189
When I run my application in dev mode (gradle bootRun
) all strings from i18N have proper encoding - I mean all polish letters are in place.
On the other hand, if I start my integration test (gradle integrationTest
) or build WAR and deploy it on Tomcat all "special" characters are encoded invalid, i.e.: zażółć gęślą jaźń. ZAŻÓŁĆ GĘŚLĄ JAŹŃ!
-> za?�?? g??l? ja??. ZA?�?? G??L? JA??!
.
Also I checked it in chrome dev console - invalid strings are coming from the server, so it's (probably) not problem of HTML encoding tags, etc.
I'm using Grails 3.0.x + AngularJS
Upvotes: 2
Views: 555
Reputation: 470
I had similar issue and it appearred that root cause of it was in IDE i used.
Try change text encoding for messages_xx files to UTF-8. For IntelliJ IDEA - this could be done via: http://www.jetbrains.com/help/idea/2016.1/configuring-individual-file-encoding.html?origin=old_help
For other IDEs also should be a way -or just use text editor that supports changing file encodings.
Upvotes: 2