# Discourse should ignore if a character is accented when doing a search

**URL:** https://meta.discourse.org/t/discourse-should-ignore-if-a-character-is-accented-when-doing-a-search/90198
**Category:** Feature
**Tags:** search, completed
**Created:** [19.Июнь.2018 10:52:24 UTC](https://meta.discourse.org/t/discourse-should-ignore-if-a-character-is-accented-when-doing-a-search/90198 "2018-06-19T10:52:24Z")
**Posts on this page:** 1
**Showing post:** 50

<div class="post-metadata">

### Author: ![danekhollas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danekhollas/32/79637_2.png) [@danekhollas](https://meta.discourse.org/u/danekhollas)
#### Post date: [22.Октябрь.2018 16:22:59 UTC](https://meta.discourse.org/t/discourse-should-ignore-if-a-character-is-accented-when-doing-a-search/90198/50 "2018-10-22T16:22:59Z")

</div>

@zogstrip Thank you for pointers, they seem to do the trick! I’ve made a PR 🎉

[https://github.com/discourse/discourse/pull/6518](https://github.com/discourse/discourse/pull/6518)

I’ve tried adding some tests, but was generally super confused about how rspec works. They do seem to work though. 🤞

One open questions: The search log still includes accents if the `strip_diacritics` function is called from `Search.prepare_data`. I am not sure that is the desired behaviour since there will be separate logs for queries that are identical from the search perspective.

---

_[View the full topic](https://meta.discourse.org/t/discourse-should-ignore-if-a-character-is-accented-when-doing-a-search/90198)._
