Searchs without accent (and special character)

Searchs without accent (and special character)

Ludoludo75Ludoludo75 Posts: 19Questions: 4Answers: 0

Hi,
I would like to search in French without accent, by example I could find "été" with searching "ete" or "été" or "éte"
It is possible with datatables ?

Thank you

This question has accepted answers - jump to:

Answers

  • allanallan Posts: 47,504Questions: 1Answers: 6,751 Site admin
    Answer ✓

    Currently you need to use a plug-in such as this one although that removes all accents.

    This is an area that is going to be improved significantly for the next major release of DataTables (v2), although that is likely some months away.

    Allan

  • Ludoludo75Ludoludo75 Posts: 19Questions: 4Answers: 0

    Yeahh, thank you, good job (I discover the whole site with plugins and extensions)

    Thanks for all

  • Ludoludo75Ludoludo75 Posts: 19Questions: 4Answers: 0

    Ok but at this time, either I search with accents or without accents ?
    I don't understand ?

    thanks

  • allanallan Posts: 47,504Questions: 1Answers: 6,751 Site admin
    Answer ✓

    No sorry - it is only without. The only option to allow search with both accents and without would be to use an orthogonal renderer that would return all of the options you want to search on. For example you could have the renderer return été ete to allow search on either.

    As I say, this is a known weakness in DataTables at the moment.

    Allan

  • Ludoludo75Ludoludo75 Posts: 19Questions: 4Answers: 0

    Oh yeah good idea, i will do that with data-search :)

    Thank you

  • lenamtllenamtl Posts: 107Questions: 32Answers: 0

    Hi,

    can anyone provide an example using orthogonal renderer i'm having the same problem..

    is this only possible per string été ete or we can have it for individual accentuate letter e é ?

    Thanks

Sign In or Register to comment.