jeudi 2 juillet 2015

Encode error with Java EE 7 for Javax.mail.message

In the older version of Java EE we could set encode for javax.mail.message like this:

message.setSubject("my subjects", "utf-8")

But now we are using java sdk 1.8 (java ee 7). There is only one method:

message.setSubject("my subjects");

We can not specify which encode here. How can i configure the encoding for java ee 7?

Aucun commentaire:

Enregistrer un commentaire