# How Can I insert date wrriten in Japanese to the ES?

**URL:** <https://discuss.elastic.co/t/how-can-i-insert-date-wrriten-in-japanese-to-the-es/28981>\
**Category:** Elasticsearch\
**Created:** [September 10, 2015, 2:34am UTC](https://discuss.elastic.co/t/how-can-i-insert-date-wrriten-in-japanese-to-the-es/28981 "2015-09-10T02:34:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kikuchan](https://avatars.discourse-cdn.com/v4/letter/k/9e8a1a/32.png) [@kikuchan](https://discuss.elastic.co/u/kikuchan)\
**Post date:** [September 10, 2015, 2:34am UTC](https://discuss.elastic.co/t/how-can-i-insert-date-wrriten-in-japanese-to-the-es/28981/1 "2015-09-10T02:34:35Z")

</div>

Hello.  
I'd like to insert date written in Japanese.

I tried to insert date by following command.

curl -XPUT '[http://localhost:9200/posts/post/5’](http://localhost:9200/posts/post/5%E2%80%99) -d {"contents":"日本語のテストです。","id":"5","name":"斉藤はじめ","userId":"5"}

but It occurred the following error.

{"error":"MppaerParsingExceptuon[failed to parse [contents]]; nested: JsonParseException[Invalid UTF-8 start byte 0x93\n at [Source: [B@61fd643e; line: 1, column: 15]]; "," status":400}

How Can I insert date wrriten in Japanese to the ES?  
Could you please help me.

---

<div class="post-metadata">

**Author:** ![johtani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johtani/32/44956_2.png) [@johtani](https://discuss.elastic.co/u/johtani)\
**Post date:** [September 10, 2015, 6:10am UTC](https://discuss.elastic.co/t/how-can-i-insert-date-wrriten-in-japanese-to-the-es/28981/2 "2015-09-10T06:10:34Z")

</div>

Which OS do you use?

If JSON is enclosed by single quotes, how about?

---

<div class="post-metadata">

**Author:** ![kikuchan](https://avatars.discourse-cdn.com/v4/letter/k/9e8a1a/32.png) [@kikuchan](https://discuss.elastic.co/u/kikuchan)\
**Post date:** [September 10, 2015, 8:20am UTC](https://discuss.elastic.co/t/how-can-i-insert-date-wrriten-in-japanese-to-the-es/28981/3 "2015-09-10T08:20:06Z")

</div>

Thanks for your comments.  
I used the \_bulk API, so I could insert the date written in Japanese.  
I guess that this problem attributed to the Encode of the date.

When I created the date,We saved the data in Shift-JIS format.  
this is the problem, maybe.

I created the date in UTF-8 format and using \_bulk API.  
I inserted the date correctly.

thanks for your helping!!

sincerely.

---

<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 5, 2017, 11:51pm UTC](https://discuss.elastic.co/t/how-can-i-insert-date-wrriten-in-japanese-to-the-es/28981/4 "2017-07-05T23:51:23Z")

</div>


