ITeye博客

Liferay开发之二 中文问题的解决(中文附件)

stonecai · 2006-11-10 11:16 · 【4】Portal 专题 · Markdown

Liferay开发之二

      中文问题的解决(中文附件)

 

一、在Tomcat的TOMCAT_HOME\conf\server.xml文件中(修改URIEncoding是增加对中文参数的支持):

<connector span="" maxhttpheadersize="8192" port="80"></connector>

               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"

               enableLookups="false" redirectPort="8443" acceptCount="100"

               connectionTimeout="20000" URIEncoding="UTF-8" disableUploadTimeout="true" />

 

二、修改portal项目下的util-java/src/com/liferay/util/servlet/ServletResponseUtil.java文件。

在119行加入:

……

res.setHeader(HttpHeaders.PRAGMA, HttpHeaders.PUBLIC);

fileName = new String(fileName.getBytes("GBK"), "ISO8859_1");

if (Validator.isNotNull(fileName)) {

……

三、重新编译发布Liferay

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。