Thursday, June 4, 2009

[jQuery] Re: [autocomplete] hard time with accent

On 6/3/09 11:55 PM, "Gustavo Salomé" <gustavonips@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 <fsb@thefsb.org>
>
>>
>> On 6/1/09 2:48 PM, "Gui" <guilhermealcantara@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.
>>
>>
>>
>

No comments: