Closed Behruz17 closed 2 years ago
It does not have anything specific in terms of what encoding should be used. It should work with Cyrillic. Can you be more specific what is it that does not work?
It doesn't show any suggestions and hints when I type Cyrillic letters.
@tkirda Can u help me please? It doesn't show any suggestions and hints when I type Cyrillic letters. But when first letter is English and the rest id Cyrillic it works
If you are playing with samples, try debug / update code where it filters suggestions:
https://github.com/devbridge/jQuery-Autocomplete/blob/master/scripts/demo.js#L17
try change the code demo.js line 51 as following :
return suggestion.value.toLowerCase().indexOf(queryLowerCase) === 0;
to as following:
return suggestion.value.toLowerCase().indexOf(queryLowerCase) === 0;
now can support as Chinese、Cyrillic etc.
@rivalhw this function is in 18 line. But it doesn't work
@rivalhw Can you please send me your version (file) ?
Hello,
I am using this awesome plugin for autocomplete. But in doesn't work with Cyrillic. Although I'm using UTF-8 encoding. Can u help me with this?
Thanks in advance, Behruz