title: How to add both character encoding and the attachment for response?
body: <p>I have a requirement to set both character encoding and the attachment for the responseheader
  during file download. How can I do that?</p>
  
  <pre><code>ResponseBuilder lResBuild = Response.ok(lResult);
  lResBuild.type("application/vnd.ms-excel");
  lResBuild.header("Content-Type", "text/xml; charset=UTF-16LE");
  lResponse = lResBuild.build();
  lResponse = Response.ok(lResponse).header("Content-Disposition",
      "attachment; filename = " + lFileName + ".xls").build(); 
  </code></pre>
  
  <p>Something like this. For special characters I am getting underscore.</p>