and the result as HTML:
MailMessage mail =
“Courier New”;mso-fareast-font-family:“Times New Roman”;color:green”>“test
mail.save(<span style=“font-size:9.0pt;font-family:“Courier New”;
mso-fareast-font-family:“Times New Roman”;color:green”>“test with
I use Aspose.Email for Java 126.96.36.199 at the moment.
Please let us know once you are done with your testing. We’ll investigate the issue further in light of your shared information.
Problem still exists with 188.8.131.52
As shared earlier in the sample output with you, we are not able to reproduce this issue at our end. Can you please verify that you have provided us with the right sample file?
I downloaded the file and tried it again - same problem. I upload the file to our server (WebSphere Application Server v 8.0) and looked at the HTML-string:
When MapiMessage is used to load a message, it uses the Unicode encoding and that is why all the strings have charset UTF-16. This can’t be changed as it is the API’s default behavior. Please try using the MailMessage as suggested above and let us know if that helps.
Is there a reason why it is encoded in UTF-16 and not in UTF-8?
If the source MSG file is saved in Unicode format, then the message’s html body will always contains the utf-16 charset to support the unicode characters. If this is raising some issue at your end, please share the exact scenario with complete sample code that we can further use to assist you. If possible, please share some screenshots of the saved output html file that gives rise to problems due to the utf-16 charset. We’ll investigate the problem at our end for assisting you further.