<%@ page contentType="text/html;charset=gb2312" %>

解决方案 »

  1.   

    把你的jdk升级到1.3版本以上,仅此一着就灵。
      

  2.   

    下面是我的程序
    <%@ page contentType="text/html;charset=GB2312" 
    %>
    <%
       //这就是从表单中得到的数据
       String error = request.getParameter("error");
    %>
    <html><head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <meta name="author" content="denghui">
    <meta name="email" content="[email protected]">
    <title>&Ccedil;&euml;&Ccedil;ó&Ograve;&sup3;&Atilde;&aelig;&sup3;&ouml;&acute;í</title>
    <style fprolloverstyle>A:hover {color: red; font-weight: bold}
    </style>
    <LINK href="css/Error.css" rel=STYLESHEET type=text/css>
    </head><body class="bg"><div align="left">
      <table border="4" width="77%" height="199" cellspacing="0" cellpadding="0" bordercolordark="#F5F5F5" align="left" bordercolorlight="#F5F5F5" bgcolor="#F5F5F5">
        <tr>
          <td width="100%" height="15" valign="top" align="left">
            <p align="left"><img border="0" src="images/lock.gif" width="32" height="32"><font class="bigRed">&Ccedil;&euml;&Ccedil;ó&Ograve;&sup3;&Atilde;&aelig;&sup3;&ouml;&acute;í</font></p>
            <p align="left"></td>
        </tr>
        <center>
        <tr>
          <td width="100%" height="28"><font class="smallBlack">&Auml;ú&Icirc;&THORN;·¨·&Atilde;&Icirc;&Ecirc;&Auml;&iquest;&Ccedil;°&micro;&Auml;&Ograve;&sup3;&Atilde;&aelig;</font></td>
        </tr>
        <tr>
          <td width="100%" height="45"><font class="smallBlack">&Ocirc;&shy;&Ograve;ò&Ecirc;&Ccedil;&pound;&ordm;<%=error%></font>
            <hr>
          </td>
        </tr>
        <tr>
          <td width="100%" height="146" valign="top" align="left"><font class="smallBlack">&Ccedil;&euml;&sup3;&cent;&Ecirc;&Ocirc;&Ograve;&Ocirc;&Iuml;&Acirc;&sup2;&Ugrave;×÷:</font>
            <ul>
              <li><font class="smallBlack">&micro;&yen;&raquo;÷<a href="javascript:location.reload()"><img border="0" src="images/flush.gif" width="13" height="16">&Euml;&cent;&ETH;&Acirc;</a>°&acute;&Aring;&yen;&pound;&not;&raquo;ò&Ograve;&Ocirc;&ordm;ó&Ocirc;&Ugrave;&Ecirc;&Ocirc;&iexcl;&pound;</font></li>
              <li><font class="smallBlack">&Egrave;&ccedil;&sup1;&ucirc;&Ocirc;&Uacute;&micro;&Oslash;&Ouml;·&Agrave;&cedil;&Ouml;&ETH;&frac14;ü&Egrave;&euml;&micro;&Oslash;&Ouml;·&pound;&not;&Ccedil;&euml;&Egrave;·±&pound;&AElig;&auml;&AElig;&acute;&ETH;&acute;&Otilde;&yacute;&Egrave;·&iexcl;&pound;</font></li>
              <li><font class="smallBlack">&Otilde;&frac34;&micro;&atilde;&Ograve;&ordf;&Ccedil;ó 128-&Icirc;&raquo;&micro;&Auml;&Aacute;&not;&frac12;&Oacute;°&sup2;&Egrave;&laquo;&ETH;&Ocirc;&iexcl;&pound;&micro;&yen;&raquo;÷°&iuml;&Ouml;ú&sup2;&Euml;&micro;&yen;&pound;&not;&Egrave;&raquo;&ordm;ó&micro;&yen;&raquo;÷&sup1;&Oslash;&Oacute;&Uacute;&auml;&macr;&Agrave;&Agrave;&AElig;÷&iquest;&Eacute;&Ograve;&Ocirc;&sup2;é&iquest;&acute;&Auml;ú&Euml;ù°&sup2;×°&micro;&Auml;°&sup2;&Egrave;&laquo;&ETH;&Ocirc;&sup3;¤&para;&Egrave;&iexcl;&pound;</font></li>  
              <li><font class="smallBlack">&Iuml;ò&Ecirc;&yacute;&frac34;&Yacute;&sup1;&Uuml;&Agrave;í&Ocirc;±&sup2;é&Ntilde;&macr;&Oacute;&ETH;&sup1;&Oslash;&ETH;&Aring;&Iuml;&cent;&iexcl;&pound;</font></li>  
              <li><font class="smallBlack">&micro;&yen;&raquo;÷<a href="javascript:history.go(-1)"><img border="0" src="images/back.gif" width="50" height="20">&ordm;ó&Iacute;&Euml;</a>°&acute;&Aring;&yen;&pound;&not;&sup3;&cent;&Ecirc;&Ocirc;&AElig;&auml;&Euml;&ucirc;&Aacute;&acute;&frac12;&Oacute;&iexcl;&pound;</font></li>  
            </ul>  
          </td>  
        </tr>  
        </table>  
      </center>  
    </div>  
      
    </body>  
      
    </html>
      

  3.   

    <%@ page contentType="text/html;charset=GB2312" 
    %>
    <%
      //这就是从表单中得到的数据
      String error = request.getParameter("error");
    %>
    <html><head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <meta name="author" content="denghui">
    <meta name="email" content="[email protected]">
    <title>请示页面出错</title>
    <style fprolloverstyle>A:hover {color: red; font-weight: bold}
    </style>
    <LINK href="css/Error.css" rel=STYLESHEET type=text/css>
    </head>
    后面的都可以不看
      

  4.   

    我认为你的问题与jdk1.3或1.4无关,但以我的经验无法判明问题出自哪个地方.
    我的环境为window2000+apache1.3.19+resin1.3.b1+jdk1.3,而类似的问题我也遇见过,但我都已解决.  
      

  5.   

    朋友,你的问题与html语句有关.font置标内奇怪的字符是仅仅设定字符集不能解决的!最好将之改成英文或汉字.
      

  6.   

    教你一个傻方法,就是到“控制面板”里把时区改成美国(美国英语),然后就重起,一切ok,连<%@ page contentType="text/html;charset=gb2312" %> 都不需要了,此方法可以解决一切中文问题
      

  7.   

    String error = request.getParameter("error");改成:
    String temp = request.getParameter("error");
    String error = new String(temp.getBytes("ISO8859_1"),"GBK");我自己写的jsp里面就是这么用的,一切OK
      

  8.   

    sorry!fen is not enough