1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-30 19:56:10 +00:00

Refactoring

This commit is contained in:
M66B 2022-01-31 19:05:18 +01:00
parent 63306fcd1c
commit 3f3f2da401

View file

@ -57,14 +57,14 @@ public class UnknownCharsetProvider extends CharsetProvider {
name = name.replace("\"", "");
// WİNDOWS-1254
name = Normalizer.normalize(name, Normalizer.Form.NFKD)
.replaceAll("[^\\p{ASCII}]", "");
int sp = name.indexOf(" ");
if (sp > 0)
name = name.substring(0, sp);
// WİNDOWS-1254
name = Normalizer.normalize(name, Normalizer.Form.NFKD)
.replaceAll("[^\\p{ASCII}]", "");
name = name.trim().toUpperCase();
if (name.contains("UTF8") || name.contains("UTF-8")) // //TRANSLIT