Allow unicode

Change-Id: Id2fd0e92047389f1b75bc03c2fb910ae07894562
This commit is contained in:
Deklan Dieterly 2015-04-17 08:18:47 -06:00
parent 26225d6247
commit 1fc3589d8a

View File

@ -141,8 +141,13 @@ public class InfluxV9RepoWriter {
HttpEntity
requestEntity =
EntityBuilder.create().setText(json).setContentType(ContentType.APPLICATION_JSON)
.gzipCompress().build();
EntityBuilder
.create()
.setText(json)
.setContentType(ContentType.APPLICATION_JSON)
.setContentEncoding("UTF-8")
.gzipCompress()
.build();
request.setEntity(requestEntity);
@ -150,7 +155,7 @@ public class InfluxV9RepoWriter {
} else {
StringEntity stringEntity = new StringEntity(json);
StringEntity stringEntity = new StringEntity(json, "UTF-8");
request.setEntity(stringEntity);