• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.io.UnsupportedEncodingException: UTF-16

 
Prasad Kancharla
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I have a java mail application with an html user interface. To send a message with characters from other languages I am using the following code mbp.setText(this.message, "UTF-16");
This works fine with UTF-8 but I get java.io.UnsupportedEncodingException: UTF-16 if I use UTF-16.
I appreciate your answers.
Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!