mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-22 06:01:12 +00:00
Convert markdown message part to UTF-8
This commit is contained in:
parent
7f4d3e6a3f
commit
ba7db23a5d
1 changed files with 4 additions and 0 deletions
|
@ -3993,6 +3993,10 @@ public class MessageHelper {
|
|||
}
|
||||
} else if (h.isMarkdown()) {
|
||||
try {
|
||||
if (cs == null ||
|
||||
StandardCharsets.US_ASCII.equals(cs) ||
|
||||
StandardCharsets.ISO_8859_1.equals(cs))
|
||||
result = new String(result.getBytes(StandardCharsets.ISO_8859_1), StandardCharsets.UTF_8);
|
||||
result = Markdown.toHtml(result);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
|
|
Loading…
Reference in a new issue