From 7765453bf77e39c3dcb4bab18c448cdf1f6b24ef Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 19 Jul 2023 07:45:29 +0200 Subject: [PATCH] Let's be conservative --- app/src/main/java/eu/faircode/email/MessageHelper.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index 8fd1ca43dc..37f0b169b1 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -3840,10 +3840,8 @@ public class MessageHelper { // Check if same as detected charset Charset detected = CharsetHelper.detect(result, c); - if (!c.equals(detected)) { - Log.w("Charset meta=" + meta + " !is" + detected); + if (c.equals(detected) && !StandardCharsets.ISO_8859_1.equals(cs)) break; - } // Common detected/meta // - windows-1250, windows-1257 / ISO-8859-1