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

Free Support Forum - aspose.com

How to use non English characters in Path and Filenames

Aspose Team,

Using the Aspose 21.4 email libraries for C++, we’re trying to load Message from an MSG and save with other name. However, when the filename or path contains non-English characters (Germans Umlaute äöüß), we’re seeing the Aspose LoadfromFile/Save API method throw a “FileNotFoundException”.

Sytem::Strng sourcefile = System::String(u"c:/Temp/äöü.msg");
System::SharedPtr msg = MailMessage::Load(sourcefile, System::MakeObject());

msg->Save(u"c:/Temp/targerfileäöü.msg", SaveOptions::get_DefaultMsgUnicode());

Welcome to our community! Thank you for the query. I logged the issue with ID EMAILCPP-308 in our tracking system. Our development team will investigate this case. I answer your question as soon as possible.