# Special characters handling

**URL:** <https://discuss.elastic.co/t/special-characters-handling/335294>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [June 6, 2023, 7:41am UTC](https://discuss.elastic.co/t/special-characters-handling/335294 "2023-06-06T07:41:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aetius](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@aetius](https://discuss.elastic.co/u/aetius)\
**Post date:** [June 6, 2023, 7:41am UTC](https://discuss.elastic.co/t/special-characters-handling/335294/1 "2023-06-06T07:41:33Z")

</div>

Hi Folks

I was fixing a bug which came through the upgrade from Spring 2.5 to Spring 3.0.  
Now before in Spring 2.5 we had custom method from a repo that extended the ElasticsearchRepository interface, and in the method we passed some parameters which were escaped beforehand.For example  
searchItemsBySomeParameter(  
projectId, ElasticMyClass.escape(searchParam), language, dbPageable);

the ElasticMyClass.escape escaped special characters like /? etc. It was working fine.  
After the upgrade to Spring 3.0 it startet giving problems each time we tried to search with special character, the i simply removed the ElasticMyClass.escape method, and now it seems to work.My question is ,i know that Spring 2.5 used 7.xx Elastic client, whereas Spring 3 uses Elastic 8 something client.I tried to go through the Release notes to find what did change, but i could find anything, does anybody know what changed and in which version so that escaping is no longer needed ?

Thanks

---

<div class="post-metadata">

**Author:** ![swallez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/swallez/32/11972_2.png) [@swallez](https://discuss.elastic.co/u/swallez)\
**Post date:** [June 7, 2023, 12:01pm UTC](https://discuss.elastic.co/t/special-characters-handling/335294/2 "2023-06-07T12:01:53Z")

</div>

Can you please provide more detailed information? It's hard to understand what the issue is with the information you provided.

---

<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, 2023, 12:02pm UTC](https://discuss.elastic.co/t/special-characters-handling/335294/3 "2023-07-05T12:02:47Z")

</div>

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