This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help on JavaMail - special character in subject  RSS feed

 
Danny Chen
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
I encountered a problem when I put special characters in subject. Ex. String subject = �test � ��. Then mimeMessage.setSubject(subject). I sent the email to my company account and hotmail account, it worked fine. But I sent to yahoo account, it turned out �test_�_�� . (adding underscore in space). I tried mimeMessage.setSubject(subject,�iso-8895-1�), still not working.
I would appreciate any help.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!