Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ public void disconnect() {
private HttpPost generatePost(String soapAction, String requestEnvelope) {
try {
HttpPost post = new HttpPost(endpointUri.toString());
StringEntity contentEntity = new StringEntity(requestEnvelope);
// ----------------------------------------------------------------
// This is the changed code to avoid using ISO characterset.
StringEntity contentEntity = new StringEntity(requestEnvelope, "UTF-8");
// ----------------------------------------------------------------
post.setEntity(contentEntity);
if (requestEnvelope.contains(SOAP_1_1_NAMESPACE)) {
soapAction = soapAction != null ? "\"" + soapAction + "\"" : "";
Expand Down Expand Up @@ -416,4 +419,4 @@ public static Builder builder() {
return new Builder();
}

}
}