<meta http-equiv="Content-Type" content="text/html; charset=big5">改成
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

解决方案 »

  1.   

    <meta http-equiv="Content-Type" content="text/html; charset=big5">去掉好了
      

  2.   

    但页面传还是会出现乱码。如下程序接收传来数据<%@page contentType="text/html;charset=gb2312"%>
    <%@ page language="java" import="java.util.*;" %>
    <%! 
    Hashtable userTable = new Hashtable(); 

         public int getCount( String userName ){
        
           Integer count = (Integer)userTable.get( userName );
           if( count != null ){ 
             int nowCount = count.intValue() + 1;
             userTable.put( userName, new Integer( nowCount ) ); 
             return nowCount;
           }
           userTable.put( userName, new Integer( 1 ) );
        
           return 1;
         }
    %>
    <% 
    String username = request.getParameter( "textUserName" );
    int count = getCount( username );
    %>
    <html>
    <head>
    <title>Login Counter</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head>
    <body bgcolor="#FFFFFF">
    <div align="center">哈罗!
    <font color="#3333FF"><b><%= username %></b></font>
    您已经到本站来参观
    <font color="#3333FF"><b><%= count %></b></font>次</div>
    </body>
    </html>
      

  3.   

    text/html; charset=gb2312的空格去掉,一般多页面传送时,只要charset的值统一就不会出现乱码了.tomcat对中文支持不好要不行换成
    content="text/html;charset=iso_8859_1"试试