We are encountering some encoding issues, specially when using 8bit as content transfer encoding. First of all, can anyone please tell me how 8bit encoded value of a-umlaut looks like?
What is best in practice to handle encoding?
I tried to use the WriteTo()
method of a MIME entity, to write the content into a stream, which works in any cases other than with 8bit encoding.
UPDATE: Currently using the code as posted in one of the examples of MimeKit:
using (MemoryStream memStm = new MemoryStream())
{
mime.WriteTo(memStm);
message.MimeMessage = Encoding.UTF8.GetString(memStm.ToArray());
}
But it seems like some kind of double encoding when my MIME contains special characters like: äÄ will result in something like: ¿½
How can I escape those double encoding situations?