Unable to add Cryillic characters to header (5.2.0)

I am receiving an exception adding Cryillic characters to message headers.

Samples attached.

Hi Sevag,


We have further investigated this issue at our end and have reproduced it here. The issue has been logged as EMAILNET-34780 in our bug tracking system for further investigation by our Product team. We shall notify you here as soon as there is some information available about it.

Hi Sevag,

We have further discussed this issue and found that as workaround, you may please use following sample code to fulfill the requirement. The product team shall further analyze it to resolve this issue on its turn.

static private void Email627689()
{
var msg = MailMessage.Load(@“1.msg”);
[//msg.Headers.Add](https://msg.headers.add/)(“OriginalSourceItemFolderPath”, “папка на русском”);
msg.Headers.Add(“OriginalSourceItemFolderPath”, EncodeHeaderValue(“папка на русском”, Encoding.UTF8));
}
private static string EncodeHeaderValue(string value, Encoding encoding)
{
return string.Format("=?{0}?B?{1}?=", encoding.BodyName, Convert.ToBase64String(encoding.GetBytes(value)));
}

The issues you have found earlier (filed as EMAILNET-34780) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.