JSP: Changing the page encoding to UTF-8

Put this in your web.xml to change the page encoding:


Now any jsp file you render, from a servlet or wherever, will have the UTF-8 charset in its response headers, i.e:

java java-jsp

Edit on github
comments powered by Disqus
Click me