如何使用 gbk编码?
yshzh
2007-06-05
<filter>
<filter-name>Set Character Encoding</filter-name> <filter-class>filters.SetCharacterEncodingFilter</filter-class> <init-param> <param-name>encoding</param-name> <param-value>GBK</param-value> </init-param> </filter> <filter-mapping> <filter-name>Set Character Encoding</filter-name> <url-pattern>/report_web/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>Set Character Encoding</filter-name> <url-pattern>/sw/*</url-pattern> </filter-mapping> <!--我自己的过滤器---> <filter> <filter-name>eXtremeExport</filter-name> <filter-class>org.ecside.filter.ECSideFilter</filter-class> <!-- <init-param> <param-name>useEasyDataAccess</param-name> <param-value>true</param-value> </init-param> --> <init-param> <param-name>useEncoding</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>encoding</param-name> <param-value>GBK</param-value> </init-param> </filter> <filter-mapping> <filter-name>eXtremeExport</filter-name> <url-pattern>/sw/*</url-pattern> </filter-mapping> <!--ec 的filter--> 在页面里<%@ page language="java" contentType="text/html;charset=GBK" %> <meta http-equiv="Content-Type" content="text/html; charset=GBK" /> 可在gbk下就无法显示, 还提示“ECSideMessage 未定义”,换程utf-8就正常了,未什么呢? 还需要配置什么东西吗? |
|
JaNer
2007-10-31
我也遇到这个问题,不知道是什么原因?
|
|
JaNer
2007-10-31
是编码问题!fins提供了两个编码格式的JS
|
|
shenxuguipohun
2007-11-05
不要加自己的编码过滤器~~否则会和ECSide的过滤器冲突~把ECSide的编码过滤器改成GBK就行了~~
|
|
sadanxo
2007-12-06
......
我设置过了 都测试过了 但是使用GBK 还是提示“ECSideMessage 未定义”, 不得其解... |
|
wplqw
2007-12-07
<%@ page contentType="text/html; charset=GBK" %>
<%@ taglib uri="http://www.ecside.org" prefix="ec" %> <html> <head> <link rel="stylesheet" type="text/css" href="components/ecside/css/ecside_style.css" /> <script type="text/javascript" src="components/ecside/js/prototype_mini.js" ></script> <script type="text/javascript" src="components/ecside/js/ecside_msg_gbk_cn.js" ></script> <script type="text/javascript" src="components/ecside/js/ecside.js" ></script> <script> |