从6.0.5升级到6.2后的Liferay编码

时间:2018-07-14 16:48:10

标签: java liferay-6

从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>

以下是liferay门户的屏幕截图:
enter image description here

编辑:
Liferay版本是6.2 GA2: enter image description here

0 个答案:

没有答案