Workaround incorrectly detected charset

FairEmail is not being distributed in China, etc
This commit is contained in:
M66B 2020-10-24 21:23:03 +02:00
parent a63999c5e0
commit f48821fceb
1 changed files with 5 additions and 1 deletions

View File

@ -87,7 +87,11 @@ class CharsetHelper {
"windows-1257".equals(detected) || "windows-1257".equals(detected) ||
"UTF-8".equals(detected)) "UTF-8".equals(detected))
Log.w("compact_enc_det result=" + 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 // ISO-2022-JP, GB18030
Log.e("compact_enc_det result=" + detected); Log.e("compact_enc_det result=" + detected);