# How to escape newline charaters when indexing Unicode document?

**URL:** <https://discuss.elastic.co/t/how-to-escape-newline-charaters-when-indexing-unicode-document/23143>\
**Category:** Elasticsearch\
**Created:** [April 8, 2015, 12:20am UTC](https://discuss.elastic.co/t/how-to-escape-newline-charaters-when-indexing-unicode-document/23143 "2015-04-08T00:20:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nova](https://avatars.discourse-cdn.com/v4/letter/n/c5a1d2/32.png) [@Nova](https://discuss.elastic.co/u/Nova)\
**Post date:** [April 8, 2015, 12:20am UTC](https://discuss.elastic.co/t/how-to-escape-newline-charaters-when-indexing-unicode-document/23143/1 "2015-04-08T00:20:26Z")

</div>

Hi guys.

I'm trying to index a Unicode document with the newlines, example:

Con cò bé bé  
Nó đậu cành tre  
Đi không hỏi mẹ ....

After I index into Elasticsearch, the data has no newlines anrymore:

Con cò bé bé Nó đậu cành tre Đi không hỏi mẹ ....

Anybody can help me to solve this ?

Thanks.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3715e000-ae4a-4bd7-a1a7-05640422c8b8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3715e000-ae4a-4bd7-a1a7-05640422c8b8%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:21am UTC](https://discuss.elastic.co/t/how-to-escape-newline-charaters-when-indexing-unicode-document/23143/2 "2017-07-06T00:21:01Z")

</div>


