On Fri, Aug 5, 2011 at 8:38 AM, Sam Crawford <[email protected]> wrote: > Use "UTF-8" rather than "UTF8", but aside from that you should be > fine. Also, if you're using HttpClient 4.x, then it'll be StringEntity > rather than StringRequestEntity.
Awesome! thanks > > Thanks, > > Sam > > > On 4 August 2011 23:45, Mohit Anchlia <[email protected]> wrote: >> I need to read from the servlet and then post to some other host. >> >> When using Content-Type: application/xml which Entity >> (ByteArray/String) should I be using to read from HttpServletRequest >> to POST it to some other host. This xml also contains base64 encoded >> payload. >> >> encoding on the xml says >> >> <?xml version="1.0" encoding="UTF-8" standalone="yes"?> >> >> So I am assuming I should be using >> >> StringRequestEntity(postData, "application/xml", "UTF8")); >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
