mirror of https://github.com/M66B/FairEmail.git
Added GB2312 workaround
This commit is contained in:
parent
d63a9664f8
commit
0593c6afcf
|
@ -65,6 +65,10 @@ public class UnknownCharsetProvider extends CharsetProvider {
|
|||
if (name.contains("UTF8") || name.contains("UTF-8")) // //TRANSLIT
|
||||
return StandardCharsets.UTF_8;
|
||||
|
||||
// https://charset-normalizer.readthedocs.io/en/latest/support.html
|
||||
if (name.contains("GB2312"))
|
||||
name = "GB2312";
|
||||
|
||||
if (TextUtils.isEmpty(name) ||
|
||||
name.contains("ASCII") ||
|
||||
//name.startsWith("ISO8859") ||
|
||||
|
|
Loading…
Reference in New Issue