# Not able to post unicode characters to ES, they show up as question marks

**URL:** <https://discuss.elastic.co/t/not-able-to-post-unicode-characters-to-es-they-show-up-as-question-marks/136769>\
**Category:** Elasticsearch\
**Created:** [June 20, 2018, 10:32pm UTC](https://discuss.elastic.co/t/not-able-to-post-unicode-characters-to-es-they-show-up-as-question-marks/136769 "2018-06-20T22:32:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![racovarr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/racovarr/32/32505_2.png) [@racovarr](https://discuss.elastic.co/u/racovarr)\
**Post date:** [June 20, 2018, 10:32pm UTC](https://discuss.elastic.co/t/not-able-to-post-unicode-characters-to-es-they-show-up-as-question-marks/136769/1 "2018-06-20T22:32:37Z")

</div>

I am storing emails to ES but whenever they have a character not from iso latin like "コニカミノルタ", they get changed to ? in ES:

> ```
> "content": """
> 
> ```
> 
> ???????  
> ?? ?
> 
> ?????????????????

I am using the following code to post to ES:

```
		HttpPost post = new HttpPost(url);
		try {
			// set import date
			doc.setImportTimestamp(new Date());
			// convert item to json string
			post.setEntity(new StringEntity(JsonUtils.toJson(doc)));

			// index
			post.setHeader("Content-Type", "application/json; charset=UTF-8");
			// perform http post
			LOG.info("Index doc to " + url);
			LOG.info("JSON : [" + JsonUtils.toJson(doc) + "]");
			try (CloseableHttpResponse res = httpClient.execute(post)) {
				LOG.debug(IOUtils.toString(res.getEntity().getContent(), StandardCharsets.UTF_8));
			}

```

This is the string in the JSON object before it gets posted:

> `> "content": "コニカミノルタ\r\n宮脇 様\r\n\r\nいつも大変お世話になっております。\r\n\r\n今回表示されたエラーを教えていただけますでしょうか。\r\nスクリーンショットをお送りいただけますと情報として問題解決にとても\r\n助かります。\r\n\r\n検証会議につきまして、明日でも宜しければ参加をさせていただきます。\r\nお手数ですが、それまでに先ほどお送りしました証明書の追加作業が\r\n御社IT部門の方にて適用されていることをご確認いただけましたら幸甚です。\r\n\r\nご連絡をお待ちしております。\r\n\r\nどうぞよろしくお願い致します。\r\n\r\n山本 美奈子\r\nMinako Yamamoto\r\nWeb Support APAC \r\nUnified Communications Services\r\nAU +612 8295 9015 / 1800 766 770 \r\nHK 800 964 180\r\nIN 1800 3010 3990 \r\nJP 0120300532\r\nKR 0808080501\r\nSG 800 616 \r\ne WebSupport-APAC@west.com \r\nwestuc.com\r\n\r\n\r\n\r\n--------------------------------------------------------------------------------------\r\n",`

Any help is welcomed.

Thanks

Raúl

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 18, 2018, 10:32pm UTC](https://discuss.elastic.co/t/not-able-to-post-unicode-characters-to-es-they-show-up-as-question-marks/136769/2 "2018-07-18T22:32:40Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
