Hi,
we recently started using .Msg format to save the Mail Item. One thing we noticed is Danish Char ( æ, ø and å, ) is transferred to ??? in subject and attached document item (body is ok)
Try to reproduce,
Subject : æ, ø and å,
Body : æ, ø and å,
Create a file like “æ, ø and å.txt” and attach to this mailitem.
Try Save it. (Sending is not a problem)
Note : Saving in .EML format - works fine
aspose.network.dll -> 5.1.0.0 (.NET3.5 version)
Thanks
Denn
Hello Denn,
Thank you for inquiry.
I was able to save the message correctly (including Danish characters) with Aspose.Network v5.8, when I used MailMessageSaveType.OutlookMessageFormatUnicode in the MailMessage.Save() method.
Example:
MailMessage message = new MailMessage();
message.Subject = “æ, ø and å,”;
message.HtmlBody = “æ, ø and å,”;
message.Attachments.Add(new Attachment(“æ, ø and å.txt”));
message.Save(“test.eml”, MailMessageSaveType.EmlFormat); // OK
message.Save(“test.msg”, MailMessageSaveType.OutlookMessageFormat); // Unicode characters not saved properly
message.Save(“test-unicode.msg”, MailMessageSaveType.OutlookMessageFormatUnicode); // OK
message.Subject = “æ, ø and å,”;
message.HtmlBody = “æ, ø and å,”;
message.Attachments.Add(new Attachment(“æ, ø and å.txt”));
message.Save(“test.eml”, MailMessageSaveType.EmlFormat); // OK
message.Save(“test.msg”, MailMessageSaveType.OutlookMessageFormat); // Unicode characters not saved properly
message.Save(“test-unicode.msg”, MailMessageSaveType.OutlookMessageFormatUnicode); // OK