title: What exactly returns EntityUtils.toString(response)?
body: <p>I'm doing my API REST and I saw that in a lot of examples people use <code>EntityUtils.toString(response)</code> to get their <code>response</code> into a <code>String</code> from their <code>GET</code>, <code>POST</code>, <code>PUT</code> and <code>DELETE</code> methods. Similar to this:</p>
  
  <pre><code>HttpGet method = new HttpGet(url);
  method.setHeader("content-type", "application/json");
  HttpResponse response = httpClient.execute(method);
  String responseString = EntityUtils.toString(response.getEntity());
  </code></pre>
  
  <p><strong>PLEASE AVOID ANSWERS THAT SAID TO ME THAT IT GIVES TO ME A STRING</strong></p>
  
  <p>I know that it returns to me a <code>String</code> with the content of an entity (in this case the response) but here is where my doubts come, because I'm not secure about what this <code>String</code> returns. I saw it into the official documentation.</p>
  
  <blockquote>
    <p>Read the contents of an entity and return it as a String.</p>
  </blockquote>
  
  <p><a href="https://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/util/EntityUtils.html#toString(org.apache.http.HttpEntity,java.lang.String)" rel="nofollow">https://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/org/apache/http/util/EntityUtils.html#toString(org.apache.http.HttpEntity,java.lang.String)</a></p>
  
  <p>It is the <code>content-type</code> what is returned in the <code>String</code>?</p>
  
  <p>On the contrary, are the values that I'm getting with my method what are returned in the <code>String</code>?</p>
  
  <p>I think it is the second one question but I'm not secure about that. And, in the case it is true, how this values are stored into the <code>String</code>? Are they separated by comas or some special character?</p>
  
  <p>Thanks in advance!</p>