3 Replies Latest reply on Dec 12, 2010 12:45 PM by Chung-Yeung Pang

    ProducerTemplate encoding

    Chung-Yeung Pang Newbie



      Can somebody tell me how I can set the encoding to "ISO-8859-1" when I use producer template to fetch data from a servlet with the following code?


      ProducerTemplate template;


      String output = template.requestBodyAndHeaders("http://sev64:8080//TestServlet/XMLHandler", null, headers, String.class);


      In the servlet, I used




      and it works if I use other mechanism to get the response.  It just does not work using the template.


      Thanks for helping.