diff --git a/soap-client/src/main/java/org/reficio/ws/client/core/SoapClient.java b/soap-client/src/main/java/org/reficio/ws/client/core/SoapClient.java index 46009140..12986588 100644 --- a/soap-client/src/main/java/org/reficio/ws/client/core/SoapClient.java +++ b/soap-client/src/main/java/org/reficio/ws/client/core/SoapClient.java @@ -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 + "\"" : ""; @@ -416,4 +419,4 @@ public static Builder builder() { return new Builder(); } -} \ No newline at end of file +}