Hello,
I have a need to send out an email that contains Russian letters. From current code that I have end user gets question marks instead of actual letters.
Here is some code that I have:
MimeMessage msg=new MimeMessage(session);
String subject = "russian letters go here";
msg.setSubject = subject;
This is just a sample for a subject of an email.
There is another problem with body of the message itself (question marks as well).
Do you have any ideas how to make it work?
I tried something like this as well
byte[] array = subject.getBytes(subject, "Cp1251");
String newSubjecct = new String(array, "koi8-r");
I am not sure how to make it work. I'd appreciate if somebody can share ideas.
Thank you.