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; return imessages;
} else { } else {
// No UTF-8 support // No UTF-8 support
String search = Normalizer String search = state.search.replace("ß", "ss"); // Eszett
.normalize(state.search, Normalizer.Form.NFD) search = Normalizer.normalize(search, Normalizer.Form.NFD)
.replaceAll("[^\\p{ASCII}]", ""); .replaceAll("[^\\p{ASCII}]", "");
Log.i("Boundary ASCII search=" + search); Log.i("Boundary ASCII search=" + search);
SearchTerm term = new OrTerm( SearchTerm term = new OrTerm(
new OrTerm( new OrTerm(