code: public static String getCharset(HttpEntity entity) {
  		final String guess = EntityUtils.getContentCharSet(entity);
  		return guess == null ? HTTP.DEFAULT_CONTENT_CHARSET : guess;
  	}
docs: Returns entity charset to use.
  
  @param entity
  entity to check.
  @return entity charset to use in decoding.