mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-21 21:57:19 +00:00
Workaround incorrectly detected charset
FairEmail is not being distributed in China, etc
This commit is contained in:
parent
a63999c5e0
commit
f48821fceb
1 changed files with 5 additions and 1 deletions
|
@ -87,7 +87,11 @@ class CharsetHelper {
|
|||
"windows-1257".equals(detected) ||
|
||||
"UTF-8".equals(detected))
|
||||
Log.w("compact_enc_det result=" + detected);
|
||||
else
|
||||
else if ("GB18030".equals(detected)) {
|
||||
// https://github.com/google/compact_enc_det/issues/8
|
||||
Log.w("compact_enc_det result=" + detected);
|
||||
return null;
|
||||
} else
|
||||
// ISO-2022-JP, GB18030
|
||||
Log.e("compact_enc_det result=" + detected);
|
||||
|
||||
|
|
Loading…
Reference in a new issue