Substitute ISO-8859-16 by ISO-8859-1

This commit is contained in:
M66B 2020-01-07 09:17:07 +01:00
parent f2b027449a
commit bc10fc067f
1 changed files with 2 additions and 0 deletions

View File

@ -1181,6 +1181,8 @@ public class MessageHelper {
charset = charset.replace("\"", "");
if ("ASCII".equals(charset.toUpperCase()))
charset = "US-ASCII";
else if (charset.toLowerCase().endsWith("8859-16")) // not supported by Android
charset = null; // Use ISO8859-1 instead
}
if (TextUtils.isEmpty(charset) || "US-ASCII".equals(charset.toUpperCase())) {