mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-30 19:56:10 +00:00
Refactoring
This commit is contained in:
parent
63306fcd1c
commit
3f3f2da401
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue