# @mention full name autocomplete doesn't work with international characters

**URL:** <https://meta.discourse.org/t/mention-full-name-autocomplete-doesnt-work-with-international-characters/29819>\
**Category:** Feature\
**Created:** [2015 年6 月 9 日 20:09 UTC](https://meta.discourse.org/t/mention-full-name-autocomplete-doesnt-work-with-international-characters/29819 "2015-06-09T20:09:12Z")\
**Posts on this page:** 1\
**Showing post:** 24

<div class="post-metadata">

作者： ![noamraph](https://avatars.discourse-cdn.com/v4/letter/n/a88e57/32.png) [@noamraph](https://meta.discourse.org/u/noamraph)\
发布日期： [2015 年6 月 11 日 23:29 UTC](https://meta.discourse.org/t/mention-full-name-autocomplete-doesnt-work-with-international-characters/29819/24 "2015-06-11T23:29:11Z")

</div>

I tested on my local installation with the patch applied.

After the search list is closed, no further requests are being made. So after you search for “bob mar” and get zero results, “bob marl” isn’t searched.

`@bob bob bob` does trigger a repeated search. But this seems rather rare to me, and can be fixed by returning an empty result list if the query string contains multiple occurrences of the same word (only words followed by a space should be considered).

If you already match `@sam` (by pressing enter), the autocomplete list gets closed, and so doesn’t show up again if you continue to `@sam s`. If you type something like `@sam how are you`, the autocomplete list would be closed as soon as there isn’t a matching user, so it would be quite fast.

To summarize, the current logic is quite simple – close the list as soon as there are no matching users or if a user is selected, and then forget about the search. It solves all of your concerns except for `bob bob bob`, which seems like a pretty rare case for me and can be solved by adding a simple logic to the search function.

Basically, I don’t see dragons here because the chance of a string to match a user drop rapidly as its length increases, so the autocomplete list would be closed pretty quickly anyway.

---

_[View the full topic](https://meta.discourse.org/t/mention-full-name-autocomplete-doesnt-work-with-international-characters/29819)._
