mirror of https://github.com/M66B/FairEmail.git
Handle common charset error
This commit is contained in:
parent
6916d539ca
commit
8fd3426ea4
|
@ -87,6 +87,9 @@ public class UnknownCharsetProvider extends CharsetProvider {
|
||||||
"unknown-8bit".equalsIgnoreCase(name))
|
"unknown-8bit".equalsIgnoreCase(name))
|
||||||
return StandardCharsets.ISO_8859_1;
|
return StandardCharsets.ISO_8859_1;
|
||||||
|
|
||||||
|
if (name.contains("1252"))
|
||||||
|
name = "windows-1252";
|
||||||
|
|
||||||
// Android will prevent recursion
|
// Android will prevent recursion
|
||||||
String jname = MimeUtility.javaCharset(name);
|
String jname = MimeUtility.javaCharset(name);
|
||||||
return Charset.forName(jname);
|
return Charset.forName(jname);
|
||||||
|
|
Loading…
Reference in New Issue