From b47c78c44c16740692f9b6d3a3aa3e212f1aff1a Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 22 Mar 2020 09:32:17 +0100 Subject: [PATCH] Charset workarounds --- app/src/main/java/eu/faircode/email/UnknownCharsetProvider.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/UnknownCharsetProvider.java b/app/src/main/java/eu/faircode/email/UnknownCharsetProvider.java index 7cc633d767..786ded9399 100644 --- a/app/src/main/java/eu/faircode/email/UnknownCharsetProvider.java +++ b/app/src/main/java/eu/faircode/email/UnknownCharsetProvider.java @@ -47,6 +47,7 @@ public class UnknownCharsetProvider extends CharsetProvider { // UseInqueCodePage // ISO3166-1 // EUCGB2312_CN + // WE8MSWIN1252 // https://javaee.github.io/javamail/FAQ#unsupen // https://github.com/javaee/javamail/blob/master/mail/src/main/resources/META-INF/javamail.charset.map try { @@ -69,6 +70,7 @@ public class UnknownCharsetProvider extends CharsetProvider { name.startsWith("ISO8859") || name.startsWith("ISO-8859") || name.startsWith("WINDOWS-1252") || + name.startsWith("WÄ°NDOWS-1254") || "x-IA5".equalsIgnoreCase(name) || "BASE64".equalsIgnoreCase(name) || "ISO".equalsIgnoreCase(name) ||