This commit is contained in:
M66B 2020-10-15 16:40:27 +02:00
parent e3e0572681
commit 6b2a4dd91b
2 changed files with 6 additions and 2 deletions

View File

@ -697,7 +697,9 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
String search = query;
if (!utf8) {
search = search.replace("ß", "ss"); // Eszett
search = search
.replace("ß", "ss") // Eszett
.replace("ij", "ij");
search = Normalizer
.normalize(search, Normalizer.Form.NFKD)
.replaceAll("[^\\p{ASCII}]", "");

View File

@ -3978,7 +3978,9 @@ class Core {
if (sb.length() > 0) {
String ascii = Normalizer
.normalize(sb.toString(), Normalizer.Form.NFKD)
.replaceAll("\\p{InCombiningDiacriticalMarks}+", "");
.replaceAll("\\p{InCombiningDiacriticalMarks}+", "")
.replace("ß", "ss")
.replace("ij", "ij");
mbuilder.setContentText(ascii);
}