Java Web Application & UTF-8

This is probably the best way to set encoding for all jsp pages, you should also save jsp files in UTF-8 encoding or whatever you need.

<jsp-config>
<taglib>
<taglib-uri>http://java.sun.com/portlet_2_0</taglib-uri&gt;
/WEB-INF/tld/liferay-portlet.tld
</taglib>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<page-encoding>UTF-8</page-encoding>
</jsp-property-group>
</jsp-config>

Advertisements