ColumnControl - search with diacritics

ColumnControl - search with diacritics

spownspown Posts: 16Questions: 6Answers: 0

Link to test case: https://live.datatables.net/lepovoku/1
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:

Search with diacritics doesn’t work.

Try to search name equals "Aaron Ačkoli" > table is emtpy

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 65,610Questions: 1Answers: 10,909 Site admin

    That's odd, your example appears to work okay for me:

    I simply loaded your example, click the dropdown for the "Name" column and then paste in "Aaron Ačkoli" to the text search and it works as expected.

    Allan

  • spownspown Posts: 16Questions: 6Answers: 0

    @allan try to change Contains to Equals "Aaron Ačkoli"

  • allanallan Posts: 65,610Questions: 1Answers: 10,909 Site admin

    Ah, sorry, I missed that point. Yes, I would expect that to not match at the moment - the equals condition just does a simple == comparison while contains makes use of DataTables smart search which does handle diacritic normalisation.

    I'll have a think about how I might handle that better in future - many thanks for letting me know about it.

    Allan

  • spownspown Posts: 16Questions: 6Answers: 0

    @allan Is there any way to remove the equals option from the search select through configuration?

  • allanallan Posts: 65,610Questions: 1Answers: 10,909 Site admin
    Answer ✓

    Yes, you can use the excludeLogic configuration option for the search types.

    Allan

  • spownspown Posts: 16Questions: 6Answers: 0

    I found simmilar problem with search "Does not contain"

    how to reproduce:
    - set col "name" search to "does not contain"
    - type "Ačkoli"
    - Ačkoli row is still there

Sign In or Register to comment.