My tool creates an XML file upon button press; however, it is UTF8 without BOM. How can I ensure it is created in simple UTF8?
My code is:
StreamWriter File = new StreamWriter(folderpath.Text + "\\folder\\setup_file.xml");
File.Write(textboxON.Text);
File.Close();