public void encodeParams(){
  for (  Map.Entry<String,String> e : params.entrySet()) {
    try {
      params.put(e.getKey(),URLEncoder.encode(e.getValue(),"UTF-8"));
    }
 catch (    UnsupportedEncodingException e1) {
      e1.printStackTrace();
    }
  }
}

public void encodeParams ( ) { for ( Map . Entry < String , String > e : params . entrySet ( ) ) { try { params . put ( e . getKey ( ) , URLEncoder . encode ( e . getValue ( ) , "UTF-8" ) ) ; } catch ( UnsupportedEncodingException e1 ) { e1 . printStackTrace ( ) ; } } }
encode the request parameters in http format
