twitter / typeahead.js

typeahead.js is a fast and fully-featured autocomplete library
http://twitter.github.io/typeahead.js/
MIT License
16.52k stars 3.21k forks source link

Turkish Character Support #1309

Open ozgrozer opened 9 years ago

ozgrozer commented 9 years ago

I have a json file which has listing city names of Turkey. Some cities have Turkish letters like İstanbul, İzmir. When I press İ there is no problem all of them listing but when I press i there is no result. I want to list cities which starting İ and I, when I press i too. How can I fix that?

in English i - I

in Turkish i - İ ı - I

osrl commented 8 years ago

Did you find any solution @ozgrozer ?

serlogo53 commented 8 years ago

sayfa kodlamanızda ve veritabanında utf8 kullanmanızı öneririm. ben bu şekilde sorunu çözdüm. i prefer use utf8 in db and page. i fixed by this.

utkukaynar commented 7 years ago

We're using UTF-8 on both page and db, yet we're still experiencing the issue.

JD-V commented 6 years ago

This happens because search algorithm works on characters code values, English 'i' and turkish 'İ' certainly has different character codes. Might need to dig dipper inside the implementation to fix this.