I read the template which contains the Swedish text(vår, än, tall) . then I try to send a mail . But while getting mail Question Mark(?) is observed in place of special or accent character . In Windows it work fine but in Linux it’s not support. I have used content type as :
text/html; charset=ISO-8859-1 (Windows work fine but in Linux it does not support)
text/html;charset=utf-8 (Windows work fine but in Linux it does not support)
text/x-vcard; charset=utf-8
text/plain; charset=ISO-8859-1; format=flowed
I set content Type as CONTENT_TYPE = "text/html;charset=utf-8";
Is there any solution ,to get proper mail.
private final static String CONTENT_TYPE = "text/html; charset=ISO-8859-1";
Message msg = new MimeMessage(session);
msg.setContent(message, CONTENT_TYPE);
System.setproperty("utf8");
I am getting ?
in place of accent characters in Linux Env.