i am trying to display unicode characters(Chinese) in my application.The jsp part is working fine and has no issues by setting the charset to UTF-8.But in the Java code , Unicode characters are not displayed.I tried by setting the request to utf-8
request.setCharacterEncoding("UTF-8");
Finally i will be getting the same and insert in to the table.The database is already configured for unicode support.
what am i doing wrong.Kindly advice on the solution or is there a better way to do it.
Thanks
Try to implement Filter in your application for character encoding:
And if you are using tomcat, make sure that your connector element has URIEncoding attribute which value is UTF-8.
Also make sure that you specifying this in every JSP page:
Hope this helps.