~~~~~~~~~再提tomcat乱码处理问题~~~~~~~~~~~
页面A.jsp(需要上传文件)
=======================================================================
<%@ page contentType="text/html; charset=GBK" language="java" %>
………………
<form action="B.jsp?id=12&fun=3" method="post" enctype="multipart/form-data" name="fcEdit" onSubmit="javascript: return ChkForm();">
……
<input name="xqmc" type="text" class="line" id="xqmc" size="40">
<input name="file1" type="file" class="tablecolor" id="file1" size="40">
……
</form>
页面B.jsp
=======================================================================
<%@ page contentType="text/html; charset=GBK" language="java" %>
<%@ page import="java.io.File"%>
<%@ page import="com.jspsmart.upload.*"%>
……
SmartUpload su = new SmartUpload();
su.initialize(pageContext);
su.upload();
……
xqmc = PubFunc.Trim((su.getRequest().getParameterValues("xqmc"))[0]);
……
out.println(xqmc);
=======================================================================
=======================================================================
B.jsp获取的A.jsp页面的表单内容为乱码。要怎么处理呢???
郁闷啊,请各位大虾帮忙啊!!
环境:linux redhat, tomcat4, sql server