I am using typeaheadjs and I would like to transliterate the search query -before- it is sent to the server.
@Edvad Zagorski gave an excellent php array for this: stack overflow
But I will need to do the same in the beforeSend () method. Therefore, if the user starts typing something like
čikago
he sent
cikago
to the server.
I tried countless branch tricks: json_encode, raw, url_encode ... Nothing worked since I really don't get these encodings.
Is it possible? I think the problem is that the beforeSend () method gets urlEncodedQuery, not the real one.
source
share