/**
  * Constructs a new {@link UrlEncodedFormEntity} with the list of parameters in the specified
  * encoding.
  *
  * @param parameters list of name/value pairs
  * @param charset encoding the name/value pairs be encoded with
  * @throws UnsupportedEncodingException if the encoding isn't supported
  */
 public UrlEncodedFormEntity(final List<? extends NameValuePair> parameters, final String charset)
     throws UnsupportedEncodingException {
   super(
       URLEncodedUtils.format(
           parameters, charset != null ? charset : HTTP.DEF_CONTENT_CHARSET.name()),
       ContentType.create(URLEncodedUtils.CONTENT_TYPE, charset));
 }
 /**
  * Constructs a new {@link UrlEncodedFormEntity} with the list of parameters in the specified
  * encoding.
  *
  * @param parameters iterable collection of name/value pairs
  * @param charset encoding the name/value pairs be encoded with
  * @since 4.2
  */
 public UrlEncodedFormEntity(
     final Iterable<? extends NameValuePair> parameters, final Charset charset) {
   super(
       URLEncodedUtils.format(parameters, charset != null ? charset : HTTP.DEF_CONTENT_CHARSET),
       ContentType.create(URLEncodedUtils.CONTENT_TYPE, charset));
 }