public static String urlEncode(String original, String encoding)
    throws UnsupportedEncodingException {
    """
	Encapsulates the call to encoding a URL
	
	@param original the string to encode
	@param encoding the encoding to use
	@return the encoded url
    """
    return new URLCodec(true, encoding).urlEncode(original);
  }
public static String urlEncode(String original, String encoding)
    throws UnsupportedEncodingException
  {
    return new URLCodec(true, encoding).urlEncode(original);
  }
public static String urlEncode ( String original , String encoding ) throws UnsupportedEncodingException { return new URLCodec ( true , encoding ) . urlEncode ( original ) ; }
Encapsulates the call to encoding a URL

@param original the string to encode
@param encoding the encoding to use
@return the encoded url
Encapsulates the call to encoding a URL