Using the new HttpClient, there are some methods (ACL, LABEL, LOCK, OPTIONS, PROPFIND, PROPPATCH, REPORT, SEARCH) where the request body is not encoded correctly. XMLResponseMethodBase.getRequestContentLength() calls generateRequestBody() to create the request body string and then calls setRequestBody with this string. setRequestBody(String) does not take a charset into account and transforms this string into an array of bytes using the platform's default charset.
HttpClient (EntityEnclosingMethod) approached this by checking the Content-Type header and using the corresponding charset. This means that the charset (Content-Type header) must be set before the getRequestContentLength method is called and hence the changes to the addRequestHeaders method in each of the methods mentioned. ------ Rob Owen SAS Institute Inc. email: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
