We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

AsposeNetwork.dll special characters ü ä ö

Dear support,

I have a problem to generate an MSG-File when the subject of the email contains german special characteres like ä,ö,ü.i. I generate the msg-File and when i save it to disk an reopen it each of that characters was replaced with an question mark "?". I found here an post which describes my problem particular. So at first i was downloading the current version of AsposeNetwork.dll in version and try to generate an MSG-File with your library again. But the behaviour is completly the same. So what can i do to solve that problem ?

Thanks for your Support

Hendrik Preis / Frank Scheer

Hi Hendrik / Frank,

Thank you for inquiry.

Please use MailMessageSaveType.OutlookMessageFormatUnicode as argument when you call MailMessage.Save() method. It will keep the Unicode characters in correct format in subject and body.

MailMessage message = new MailMessage("from@domain.com", "to@domain.com");
message.Subject = “ä,ö,ü”;
message.HtmlBody = “ä,ö,ü”;
message.Save(“test.msg”, MailMessageSaveType.OutlookMessageFormat); // correct unicode characters display
message.Save(“test-unicode.msg”, MailMessageSaveType.OutlookMessageFormatUnicode); // in-correct unicode characters display

Thanks Saqib,

that has solved my problem !

Kind Regards

Frank Scheer