diff --git a/shared/src/main/java/gov/hhs/cdc/trustedintermediary/external/apache/ApacheClient.java b/shared/src/main/java/gov/hhs/cdc/trustedintermediary/external/apache/ApacheClient.java index c4ae14431..8494a0c51 100644 --- a/shared/src/main/java/gov/hhs/cdc/trustedintermediary/external/apache/ApacheClient.java +++ b/shared/src/main/java/gov/hhs/cdc/trustedintermediary/external/apache/ApacheClient.java @@ -3,6 +3,7 @@ import gov.hhs.cdc.trustedintermediary.wrappers.HttpClient; import gov.hhs.cdc.trustedintermediary.wrappers.HttpClientException; import java.io.IOException; +import java.nio.charset.StandardCharsets; import java.util.Map; import org.apache.hc.client5.http.fluent.Request; import org.apache.hc.core5.http.Header; @@ -32,7 +33,7 @@ public String post(String url, Map headerMap, String body) try { return Request.post(url) .setHeaders(headers) - .body(new StringEntity(body)) + .body(new StringEntity(body, StandardCharsets.UTF_8)) .execute() .returnContent() .asString();