Searching tag by description doesn't work when using diacritics #6602

Closed
opened 2025-12-29 19:42:55 +01:00 by adam · 2 comments
Owner

Originally created by @BrunoBlanes on GitHub (Jun 27, 2022).

NetBox version

v3.2.4

Python version

3.10

Steps to Reproduce

  1. Create a new tag with a description containing diacritics, e.g.:
{
    "Tag": "ES",
    "Description": "Espírito Santo"
}
  1. Try searching for the tag using the normalized word "espirito", you won't find it.

Expected Behavior

As per #8629, I expected support for diacritics with normalization for when using search.

Observed Behavior

— No tags found —

Originally created by @BrunoBlanes on GitHub (Jun 27, 2022). ### NetBox version v3.2.4 ### Python version 3.10 ### Steps to Reproduce 1. Create a new tag with a description containing diacritics, e.g.: ```json { "Tag": "ES", "Description": "Espírito Santo" } ``` 2. Try searching for the tag using the normalized word "espirito", you won't find it. ### Expected Behavior As per #8629, I expected support for diacritics with normalization for when using search. ### Observed Behavior `— No tags found —`
adam closed this issue 2025-12-29 19:42:55 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jun 28, 2022):

As per https://github.com/netbox-community/netbox/issues/8629, I expected support for diacritics with normalization for when using search.

This is expected behavior, as Espírito and espirito are evaluated differently in the database. However, you're welcome to submit a feature request documenting your use case and proposed implementation.

@jeremystretch commented on GitHub (Jun 28, 2022): > As per https://github.com/netbox-community/netbox/issues/8629, I expected support for diacritics with normalization for when using search. This is expected behavior, as `Espírito` and `espirito` are evaluated differently in the database. However, you're welcome to submit a [feature request](https://github.com/netbox-community/netbox/issues/new?assignees=&labels=type%3A+feature&template=feature_request.yaml) documenting your use case and proposed implementation.
Author
Owner

@BrunoBlanes commented on GitHub (Jun 28, 2022):

I mean, I expected them to be different database-wise, however I also expected search to use a normalized form for search optimization.
You don't always input accents when searching, it is an additional key press and you might have a doubt about whether there's an accent or not in a word, but most importantly, if you use an en-us keyboard, you just can't find tags with diacritics in an optimal way.

@BrunoBlanes commented on GitHub (Jun 28, 2022): I mean, I expected them to be different database-wise, however I also expected search to use a normalized form for search optimization. You don't always input accents when searching, it is an additional key press and you might have a doubt about whether there's an accent or not in a word, but most importantly, if you use an `en-us` keyboard, you just can't find tags with diacritics in an optimal way.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6602