mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-18 21:28:54 +00:00
Attempt to fix UTF-8 text sent as US-ASCII
This commit is contained in:
parent
d0d4d15899
commit
ffa7a406f0
1 changed files with 2 additions and 0 deletions
|
@ -866,6 +866,8 @@ public class MessageHelper {
|
|||
if ("US-ASCII".equals(Charset.forName(charset).name()) &&
|
||||
!"US-ASCII".equals(charset.toUpperCase()))
|
||||
warnings.add(context.getString(R.string.title_no_charset, charset));
|
||||
if (part.isMimeType("text/plain") && "US-ASCII".equals(charset.toUpperCase()))
|
||||
result = fixUTF8(result);
|
||||
}
|
||||
} catch (ParseException ex) {
|
||||
Log.w(ex);
|
||||
|
|
Loading…
Reference in a new issue