Quantcast

UTF8MB4 character encoding not working.

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

UTF8MB4 character encoding not working.

simer
Hi guy, I don't want to duplicate my question. Here is a link to stackoverflow

http://stackoverflow.com/questions/17006905/utf8mb4-character-encoding-for-spring-mvc-and-thymeleaf-application

I can't seem to get UTF8MB4 character encoding to get working with Thymeleaf and Spring MVC. I've tried setting filter in web.xml and also tried setting it in characterEncoding parameters in my viewResolver.

Please check the link my stacktraces.  

Can someone please help ?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: UTF8MB4 character encoding not working.

Zemi
Administrator
Hello,

as far a I can see, "utf8mb4" is a MySQL encoding identification String, so Java will not recognize it. Try setting "UTF8" instead of "UTF8MB4" in your Thymeleaf configuration.

Regards,
    Zemi




Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: UTF8MB4 character encoding not working. [SOLVED]

simer
Thanks Zemi.

You are right utf8mb4 is just mysql setting.

Using UTF8 worked and I also needed to set URIEncoding="UTF-8" Connector attribute in my server.xml file.

Thanks.
Loading...