从6.0.5升级到6.2后,我的liferay字符编码出现问题
我已经验证了所有这些文件:
-在setenv.bat中编码:-Dfile.encoding = UTF8
-在portal-ext.properties中添加了该属性:file.encoding = UTF-8
-在web.xml文件中添加了过滤器:
<filter>
<filter-name>SetCharacterEncoding</filter-name>
<filter-class>
org.springframework.web.filter.CharacterEncodingFilter
</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
<init-param>
<param-name>force-encoding</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>SetCharacterEncoding</filter-name>
<url-pattern>*</url-pattern>
</filter-mapping>