charset="text/html;contentType=GBK
应为:
contentType=text/html;charset=GBK

解决方案 »

  1.   

    是我刚写错了应是:
    在eer.jsp中用
    <%@ page language="java" contentType="text/html;charset=GBK"%>
    <%=request.getParameter("commt")%>时,出现乱码不能正常读取。应怎莫解决?用<jsp:forward>吗?应怎用?还是出错?应怎用?
      

  2.   

    字符串转换:
    String strCommt = request.getParameter("commt");
    strCommt=new String(strCommt.getBytes("ISO8859-1"),"gb2312");
      

  3.   

    String strCommt = request.getParameter("commt");
    strCommt=new String(strCommt.getBytes("ISO-8859-1"),"GBK");
      

  4.   

    sendRedirect(new String(aimURL.getBytes("GBK"),"ISO-8859-1")); 肯定好用,祝好运