<%@ page contentType="text/html; charset=Windows-31J" %>

解决方案 »

  1.   

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

  2.   

    req.setCharacterEncoding("Windows-31J");
      

  3.   

    <input type=submit value="昗幆.">
    试下上面的!
      

  4.   

    自已用下面这个函数解决了:String trans(String str)
    {
      String strResult = null;
      byte tmp[];
      try{
        tmp = str.getBytes();
        strResult=new String(tmp, "shift_jis");
      }
      catch(Exception e)
      {
        System.out.println(e.getMessage());
      }
      return strResult;
    }
      

  5.   

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