title: Setting content type/ encoding in Jersey REST Client
body: <p>HI I have been trying to call REST POST API using jersey REST Client. The API is docs is 
  URL: 
  METHOD: POST
  Header Info:-
  X-GWS-APP-NAME: XYZ
  Accept: application/json or application/xml</p>
  
  <p>My Sample Jersey client code is</p>
  
  <pre><code>Client client = Client.create();
  
  WebResource resource=client.resource(URL);
  
  resource.accept(javax.ws.rs.core.MediaType.APPLICATION_XML);
  resource.type(javax.ws.rs.core.MediaType.APPLICATION_XML);
  resource.type("charset=utf-8");
  ClientResponse response = resource.post(ClientResponse.class,myReqObj);
  </code></pre>
  
  <p>I have been trying this code variation since last 1 week and it is not working. Any help in this regard is highly appreciated.</p>