mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-31 20:25:38 +00:00
Added charset workarounds
This commit is contained in:
parent
5132479a76
commit
9e7c2ddcec
1 changed files with 6 additions and 0 deletions
|
@ -74,6 +74,12 @@ public class UnknownCharsetProvider extends CharsetProvider {
|
|||
if ("UTF-8//TRANSLIT".equalsIgnoreCase(name))
|
||||
return StandardCharsets.UTF_8;
|
||||
|
||||
if ("BASE64".equalsIgnoreCase(name) ||
|
||||
"ISO".equalsIgnoreCase(name) ||
|
||||
"latin".equalsIgnoreCase(name) ||
|
||||
"windows-1252".equalsIgnoreCase(name))
|
||||
return StandardCharsets.ISO_8859_1;
|
||||
|
||||
// Android will prevent recursion
|
||||
String jname = MimeUtility.javaCharset(name);
|
||||
return Charset.forName(jname);
|
||||
|
|
Loading…
Reference in a new issue