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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Display French Chars in Text Content Type mail

843830Oct 4 2006 — edited Nov 10 2006
Hi Guys,
I have ddifficulty in setting up the char encoding for the french Character display in a text message type.
Please check the code snippet below I use for the same
MimeMultipart mmp = new MimeMultipart("alternative");
MimeBodyPart mbp = new MimeBodyPart();
mbp.setText(textMsg);
mbp.setHeader("Content-Disposition", "inline");
mbp.setHeader("Content-Transfer-Encoding", "7bit");
mbp.setHeader("Content-Type", "text/plain; charset="
+ "ISO-8859-1");

mmp.addBodyPart(mbp);

Let me know what i am doing wrong to get the french characters in TEXT part of the email.
Thanks in advance for the help.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 8 2006
Added on Oct 4 2006
5 comments
222 views