# How to replace Non-breaking space

**URL:** <https://discuss.elastic.co/t/how-to-replace-non-breaking-space/254249>\
**Category:** Elasticsearch\
**Created:** [November 4, 2020, 10:41am UTC](https://discuss.elastic.co/t/how-to-replace-non-breaking-space/254249 "2020-11-04T10:41:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chetan\_Ambi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chetan_ambi/32/75580_2.png) [@Chetan\_Ambi](https://discuss.elastic.co/u/Chetan_Ambi)\
**Post date:** [November 4, 2020, 10:41am UTC](https://discuss.elastic.co/t/how-to-replace-non-breaking-space/254249/1 "2020-11-04T10:41:22Z")

</div>

Could someone please help how to to replace Non-breaking space with regular space. I referred [this](https://github.com/elastic/elasticsearch/issues/1907) but its not working.

> ```
> GET /_analyze
> {
> "tokenizer": "keyword",
> "char_filter": [
> {
> "type": "mapping",
> "mappings": ["\\u00a0=>\\u0020"]
> }
> ],
> "text": "For section\\xa07."
> }
> 
> ```

Output:

> {  
> "tokens" : [  
> {  
> "token" : """For section\xa07.""",  
> "start\_offset" : 0,  
> "end\_offset" : 17,  
> "type" : "word",  
> "position" : 0  
> }  
> ]  
> }

---

<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:** [December 2, 2020, 10:41am UTC](https://discuss.elastic.co/t/how-to-replace-non-breaking-space/254249/2 "2020-12-02T10:41:27Z")

</div>

Closed on December 2, 2020, 10:41am UTC

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