I have been using the following code in my program to send mail in English -
But, now I have a requirement to send Japanese characters in mail.
I tried to google alot but couldn't find a viable solution.
Can anyone assist me with the code (if possible)
When I try to harcode Japanese Characters ino Subject & Content Line, the mails outputs ??? in place of all the Japanese chractersets. Like this -
Nitin Sinha wrote:When I try to harcode Japanese Characters ino Subject & Content Line, the mails outputs ??? in place of all the Japanese chractersets.
How are you verifying this? Using the console? Because then maybe it's a console problem, not a JavaMail problem.
I have this Java Mail embedded in a servlet which is called upon submission of a JSP form which consolidates all the inputs from the user in a mail and mails them to me. Now, I want to allow user to enter Japanese characters in the inut boxes So those Japanese characters should get mailed to me too.
But this is other part of the story. Even if i try to hardcode anything in the mailer Body content, it returns a mail to me which has all ??? wherever I hardcode Japanese characters