Write text files without Byte Order Mark (BOM)?
In order to omit the byte order mark (BOM), your stream must use an instance of UTF8Encoding other than System.Text.Encoding.UTF8 (which is configured to generate a BOM). There are two easy ways to do this: 1. Explicitly specifying a suitable encoding: Call the UTF8Encoding constructor with False for the encoderShouldEmitUTF8Identifier parameter. Pass the UTF8Encoding instance … Read more