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 Message.getSubject() method

843834Dec 22 2009 — edited Dec 24 2009
Hi,
When I try to get the subject of a message, sometimes it fails to decode and

?==?utf-8?Q?
=?utf-8?Q?
?==?utf-8?Q?
=?iso-8859-1?Q?

things like that appear in it. The method does not throw MessageException. Can you help me?

I'm using:
String subject = message.getSubject();

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 21 2010
Added on Dec 22 2009
11 comments
889 views