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!

Problem with unicode in MIME text/html

843830Dec 27 2005 — edited Feb 27 2006
Hi;

I have a java program that sends email by sending it to our exchange server using SMTP. The email has both a To and a Bcc in the single email sent.

The bcc addressee receives the email fine.

The to address however has a problem with chars that are > 0x7f in the html. The html uses utf-8. But the displayed characters look as though the utf-8 part was ignored.

Also weird, if I go to view, options in Outlook for the bcc email (which is good) it shows:

MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_Part_0_32437168.1135634913407"
Return-Path: order@windward.net
X-OriginalArrivalTime: 26 Dec 2005 22:08:33.0366 (UTC) FILETIME=[E94D1F60:01C60A68]

------=_Part_0_32437168.1135634913407
Content-Type: text/plain; charset=Cp1252
Content-Transfer-Encoding: quoted-printable

------=_Part_0_32437168.1135634913407
Content-Type: text/html; charset=Cp1252
Content-Transfer-Encoding: quoted-printable


------=_Part_0_32437168.1135634913407--

But for the to email (which has the problem), it only shows:

MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_Part_0_32437168.1135634913407"
Return-Path: order@windward.net
X-OriginalArrivalTime: 26 Dec 2005 22:08:33.0366 (UTC) FILETIME=[E94D1F60:01C60A68]

Does javamail do anything weird when it gets an email with a to and a bcc and split it up wrong? I just download and installed the latest mail.jar and activation.jar.

thanks - dave
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 27 2006
Added on Dec 27 2005
3 comments
721 views