added charset on payload creation for nara publishing

This commit is contained in:
Enrico Ottonello 2022-01-31 15:25:38 +01:00
parent b2a54f4204
commit f8e6e04e82
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ public class PublishGraphDBJobNode extends AsyncJobNode {
CloseableHttpResponse responsePPOST = null;
try {
HttpPost post = new HttpPost(getPublishEndpoint());
StringEntity ent = new StringEntity(record);
StringEntity ent = new StringEntity(record, "UTF-8");
post.setEntity(ent);
responsePPOST = client.execute(post);
int statusCode = responsePPOST.getStatusLine().getStatusCode();