One function in my application is sending emails.Only the attachment is needed, there should be no body or an empty body. However, the recipient requires that the body announces a specific encoding even when empty.While setting the body encoding to Encoding.GetEncoding("iso-8859-1"), the resulting mail was still encoded in us-ascii with an empty body.Only when the body is not null and not empty (""), the requested encoding is used and selected as the 'Content-Type'.
Visual Studio/Team Foundation Server/.NET Framework Tooling Version
Steps to reproduce
Operating System Language