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

pull/172/head
M66B 5 years ago
parent f2b027449a
commit bc10fc067f

@ -1181,6 +1181,8 @@ public class MessageHelper {
charset = charset.replace("\"", ""); charset = charset.replace("\"", "");
if ("ASCII".equals(charset.toUpperCase())) if ("ASCII".equals(charset.toUpperCase()))
charset = "US-ASCII"; 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())) { if (TextUtils.isEmpty(charset) || "US-ASCII".equals(charset.toUpperCase())) {

Loading…
Cancel
Save