public static String encode(final String value){
  try {
    return URLEncoder.encode(value,CHARSET_ISO_8859_1);
  }
 catch (  UnsupportedEncodingException e) {
    throw new IllegalArgumentException(e);
  }
}

public static String encode ( final String value ) { try { return URLEncoder . encode ( value , CHARSET_ISO_8859_1 ) ; } catch ( UnsupportedEncodingException e ) { throw new IllegalArgumentException ( e ) ; } }
url - encode value using ' iso - 8859 - 1 ' character set
