Replace ß by ss

This commit is contained in:
M66B 2019-02-20 15:49:29 +00:00
parent 622b40209d
commit 455e1eb89e
1 changed files with 3 additions and 2 deletions

View File

@ -224,9 +224,10 @@ public class ViewModelBrowse extends ViewModel {
return imessages;
} else {
// No UTF-8 support
String search = Normalizer
.normalize(state.search, Normalizer.Form.NFD)
String search = state.search.replace("ß", "ss"); // Eszett
search = Normalizer.normalize(search, Normalizer.Form.NFD)
.replaceAll("[^\\p{ASCII}]", "");
Log.i("Boundary ASCII search=" + search);
SearchTerm term = new OrTerm(
new OrTerm(