[ https://issues.apache.org/jira/browse/JAMES-4000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17818472#comment-17818472 ]
Benoit Tellier commented on JAMES-4000: --------------------------------------- Setting up such a default behaviour with Mime4J might be challenging... Setting a global configurable default value though is already achieved. > JMAP should guess charset of text parts when missing > ---------------------------------------------------- > > Key: JAMES-4000 > URL: https://issues.apache.org/jira/browse/JAMES-4000 > Project: James Server > Issue Type: Improvement > Affects Versions: 3.8.0, 3.8.1 > Reporter: René Cordier > Priority: Major > Fix For: 3.9.0 > > Attachments: jmap-charset-missing.png > > > Given an email with a text part without charset > {code:java} > ------------=_1706602778-31669-7 > Content-Type: text/plain; name="avertissement.txt" > Content-Disposition: inline; filename="avertissement.txt" > Content-Transfer-Encoding: base64 > Q2UgbWVzc2FnZSDpbGVjdHJvbmlxdWUgZXQgdG91cyBsZXMgZmljaGllcnMgYXR0YWNo6XMgcXUn > aWwgY29udGllbnQgc29udCBjb25maWRlbnRpZWxzIGV0IGRlc3RpbulzIGV4Y2x1c2l2ZW1lbnQg > {code} > > Today James fails at rendering this properly (cf attachment) > This is because we uses `US_ASCII` as a default when no charset is specified. > Suggestion: we should rather "guess" the charset when that's the case: > [https://github.com/albfernandez/juniversalchardet] -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org