mirror of https://github.com/M66B/FairEmail.git
Guess UTF-8 for plain text only when no charset
This commit is contained in:
parent
53ac8347dc
commit
2e9c393062
|
@ -1725,7 +1725,7 @@ public class MessageHelper {
|
|||
warnings.add(context.getString(R.string.title_no_charset, charset));
|
||||
|
||||
if (part.isMimeType("text/plain")) {
|
||||
if (Helper.isUTF8(result)) {
|
||||
if (TextUtils.isEmpty(charset) && Helper.isUTF8(result)) {
|
||||
Log.i("Charset plain=UTF8");
|
||||
result = new String(result.getBytes(StandardCharsets.ISO_8859_1), StandardCharsets.UTF_8);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue