thisObject
05-15-2006, 11:25 AM
Hello,
I have a problem setting up subject of an email when sending out an email using JavaMail in Russian letters.
Code:
MimeMessage msg = new MimeMessage(session);
msg.setSubject("some Russian letters","some encoding");
I've tried different encodings but nothing works. I get question marks no matter what.
Has anyone ever had to deal with this? What should be the correct encoding?
OS that I am using is Fedora Core 5.
In general, if I wan to create a string that contains Russian characters such as:
String s = "Some words in Russian";
Later, I want to treat this string as any other string in my program (pass it to a method and so on).
Which encoding should I use and how should I handle this string?
Thank you.
I have a problem setting up subject of an email when sending out an email using JavaMail in Russian letters.
Code:
MimeMessage msg = new MimeMessage(session);
msg.setSubject("some Russian letters","some encoding");
I've tried different encodings but nothing works. I get question marks no matter what.
Has anyone ever had to deal with this? What should be the correct encoding?
OS that I am using is Fedora Core 5.
In general, if I wan to create a string that contains Russian characters such as:
String s = "Some words in Russian";
Later, I want to treat this string as any other string in my program (pass it to a method and so on).
Which encoding should I use and how should I handle this string?
Thank you.