Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

mail.mime.ignoreunknownencoding in JavaMail 1.4

843834May 18 2009 — edited Jun 26 2009
Dear All

I tried to workaround an error like

java.io.IOException: Unknown encoding: 7
        at javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSource.java:70)
        at com.sun.mail.handlers.text_plain.getContent(text_plain.java:64)
        at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:745)
        at javax.activation.DataHandler.getContent(DataHandler.java:501)
        at javax.mail.internet.MimeMessage.getContent(MimeMessage.java:1339)

with the System property mail.mime.ignoreunknownencoding set to tue

tried -Dmail.mime.ignoreunknownencoding=true

and also

System.setProperty("mail.mime.ignoreunknownencoding", "true");

bui it doesn't solve anything.

Anyone has an idea

Thanks,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 24 2009
Added on May 18 2009
7 comments
885 views