1、所有文件都以-utf-8编码格式保存
2、所有文件都设置charset为UTF-8
3、在页面头部加上如下代码 <%@LANGUAGE="VBScript" CodePage="65001"%> <% response.Charset="utf-8" %>
表单: <form name="searchForm" id="searchForm" action="lawfirm3/search.asp"
method="post" > <table bordercolor="#FF0000" width="270"> <tr > <td width="180" align="center" valign="middle"><label> <input type="text" name="keyword" id="keyword" value=""
maxlength="40"/> </label> </td> <td width="90" align="left" valign="middle"><input
type="image" src="lawfirm3/images/button2.jpg" name="submit"
onClick="javascript:searchF();return false;"/></td> </tr> </table> </form>
4、在处理页面search.asp:
<%@LANGUAGE="VBScript" CodePage="65001"%> <% response.Charset="utf-8" keyword=request.Form("keyword") %>