byte[] temp;
          String tempuser = pageContext.getRequest().getParameter("selectedListstr");
          if (tempuser==null)
            tempuser="";
          temp=tempuser.getBytes("iso8859-1");
          selectedListstr=new String(temp);

解决方案 »

  1.   

    标准的内码转换函数:
        public String getStr(String str)
              { try
                  {
                      String temp_p=str;
                      byte[] temp_t=temp_p.getBytes("GBK");
                      String temp=new String(temp_t,"ISO8859_1");
                      return temp;
                   }
                   catch(Exception e)
                   {
                   }
    拿这个方法去转换一下你输入的字符串即可