filtering spanish accents in searching box
filtering spanish accents in searching box
bucanero
Posts: 15Questions: 2Answers: 0
Hi, I got a problem like this: http://www.datatables.net/forums/discussion/18763/key-problems-with-accent-spanish
But I need to ignore any accent at search (like google).
When I write Pérez, Perez or Pèrez (one of them) it'd return all (Juan Perez, Jose Pérez and Pedro Pèrez)
Do you understand? (I'm spanish, sorry my english)
Thanks and regards.
This discussion has been closed.
Answers
Take a look at this plug-in: http://datatables.net/plug-ins/filtering/type-based/accent-neutralise
Allan
Thanks for your quick answer, but I've tested it and doesn't work.
When we want to write a accented letter, we've to push two keys: one for accent (doesn't write anything) and another for letter.
Then replace() searchs the first one (the accent) and don't search the second (the letter)
I think that these is the problem.
Can you link to a page showing the problem so I can see it and try to offer some help then.
Allan
No, I can't. For several reasons. :-(
Please, Would you test it with the example of the link that I put avobe?
Thanks a lot.
I don't have any spare time at the moment. I'll try to make some early next week, but can't promise anything. If you can, please use http://live.datatables.net or JSFiddle to recreate the issue so I can help.
Allan
Ok, When I'll can, I do it. Thanks for all
Hi,
...and the solution is:
1.-SCRIPT:
2.-IN FILE (jquery.datatables.js) MODIFY in function _fnFeatureHtmlFilter() :
If you'll modify jquery.datatables.js for his distribution, please you'd tell me.
Thanks.