I have two unrelated but very similar problems with JQuery Mobile's listview.
One listview is a filter reveal with local data. The problem is, if the item is named "estación", it will only show up when typing "estació", but not "estacio". I.e. what I would like to do is an accent insensitive listview filter.
The other problem involves another listview, this time it's a remote autocomplete like the one here. In this case, it's the opposite: if I type "estacio" I do get "estación", but if I type "estació" I don't get anything. I think this might be a problem with encoding, as I get 'é' in my controller instead of "é". I tried putting
dataType : "application/json;charset=UTF-8",
encoding : "utf-8"
in my javascript code but it still does not work.
For the record, this is the line that makes the AJAX call:
xhr = $.ajax({
url : urlBase + "mycontroller/search",
dataType : "application/json;charset=UTF-8",
crossDomain : true,
encoding : "utf-8",
data : {
q : $input.val()
}
});
I put a breakpoint on the input.val() and at that point the value was still "é". Yet when it hits my controller, it's 'é'.