Quantcast

UTF-8 encoding problem using messages.properties in Spring Boot with Thymeleaf

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

UTF-8 encoding problem using messages.properties in Spring Boot with Thymeleaf

RollerBlade
When I use my Thymeleaf templates without expression including only string literals as pure html code it correctly shows the non ACSII Hungarian letters.

When I put the same string literal to a variable in messages.properties file and referring it as #{something} the expression is not shown properly. Instead of the non-ASCII Hungarian letters I see �r�l�k instead of Örülök.

What can be the problem? My html templates use utf-8 encoding. My thymeleaf encoding is configured by spring boot to use utf-8 by default?
Loading...