//进行编码的转换---------------------------------------------
   public String toGb(String uniStr){
    String gbStr = "";
    if(uniStr == null){
      uniStr = "";
    }
    try{
     byte[] tempByte = uniStr.getBytes("ISO8859_1");
     gbStr = new String(tempByte,"GB2312");
    }catch(UnsupportedEncodingException uef){
   }
    return gbStr;
  }
  public String toUni(String gbStr){
    String uniStr = "";
    if(gbStr == null){
      gbStr = "";
    }
    try{
     byte[] tempByte = gbStr.getBytes("GB2312");
     uniStr = new String(tempByte,"ISO8859_1");
    }catch(UnsupportedEncodingException uef){
   }
    return uniStr;
  }