What are you using to do the string matching? For me, I was using autocomplete to search for something stored in a MySQL database, and MySQL by default automatically matches even those strings with accents from non-accented characters. It should either be the script or the database that handles this conversion/matching.
On Jun 4, 5:51 am, Tom Worster <f...@thefsb.org> wrote: > On 6/3/09 11:55 PM, "Gustavo Salomé" <gustavon...@gmail.com> wrote: > > > No way you can do this unless you do have 'switch' that converts all > > elements to its respective non-utf8 code. > > how is the search string encoded in the q parameter sent to the backend? > > whatever conversion is needed, isn't it easier to do in the backend than in > client js? > > > 2009/6/2 Tom Worster <f...@thefsb.org> > > >> On 6/1/09 2:48 PM, "Gui" <guilhermealcant...@gmail.com> wrote: > > >>> I'm currently using this JQuery autocomplete plugin. It fits my needs, > >>> pretty cool, however I'm having a hard time with accents. If I type: > >>> Antonio, the plugin won't retrieve Antônio. I mean, it won't handle > >>> the special characters (á, à, é, í, ó, ú and so on.) > > >>> Is there any option so that it can handle them? > > >> for the local database, i'm not aware of one. if you're using ajax and > >> remote back end then maybe you can handle this in your script. if using > >> mysql backend, perhaps setting a different collation and tweaking your > >> query > >> is all you need.