Allow unicode
Change-Id: Id2fd0e92047389f1b75bc03c2fb910ae07894562
This commit is contained in:
parent
26225d6247
commit
1fc3589d8a
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user