From 0319ee4a5dca36196ae51bcee7d453c06d766e2e Mon Sep 17 00:00:00 2001 From: cketti Date: Sun, 10 Mar 2013 09:55:25 +0100 Subject: [PATCH] Move KOI8-U -> KOI8-R fixup to charset fall-back table --- src/com/fsck/k9/mail/internet/MimeUtility.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/fsck/k9/mail/internet/MimeUtility.java b/src/com/fsck/k9/mail/internet/MimeUtility.java index 982127a11..db5c3e2b5 100644 --- a/src/com/fsck/k9/mail/internet/MimeUtility.java +++ b/src/com/fsck/k9/mail/internet/MimeUtility.java @@ -912,6 +912,8 @@ public class MimeUtility { * Table format: unsupported charset (regular expression), fall-back charset */ private static final String[][] CHARSET_FALLBACK_MAP = new String[][] { + // Some Android versions don't support KOI8-U + {"koi8-u", "koi8-r"}, {"iso-2022-jp-[\\d]+", "iso-2022-jp"}, // Default fall-back is US-ASCII {".*", "US-ASCII"} @@ -2185,8 +2187,6 @@ public class MimeUtility { charset = charset.toLowerCase(Locale.US); if (charset.equals("cp932")) charset = "shift_jis"; - else if (charset.equals("koi8-u")) - charset = "koi8-r"; if (charset.equals("shift_jis") || charset.equals("iso-2022-jp")) { String variant = getJisVariantFromMessage(message);