mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 16:43:26 +02:00
Make unsuported charsets explicit, add freeutils charsets
This commit is contained in:
@@ -253,9 +253,9 @@ public class MessageHelper {
|
||||
try {
|
||||
s = part.getContent().toString();
|
||||
} catch (UnsupportedEncodingException ex) {
|
||||
Log.w(Helper.TAG, part.getContentType() + "\n" + ex + "\n" + Log.getStackTraceString(ex));
|
||||
s = "Unsupported encoding: " + part.getContentType() + "\n\n";
|
||||
|
||||
throw new UnsupportedEncodingException(part.getContentType());
|
||||
/*
|
||||
// https://javaee.github.io/javamail/FAQ#unsupen
|
||||
InputStream is = part.getInputStream();
|
||||
|
||||
ByteArrayOutputStream os = new ByteArrayOutputStream();
|
||||
@@ -269,6 +269,7 @@ public class MessageHelper {
|
||||
} catch (UnsupportedEncodingException uex) {
|
||||
Log.w(Helper.TAG, uex + "\n" + Log.getStackTraceString(uex));
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
if (part.isMimeType("text/plain"))
|
||||
|
||||
Reference in New Issue
Block a user