using (TextWriter writer = File.CreateText(path2))
{
writer.Write(SomeText);
}
Questo è un pezzo di codice problematico. Quando scrivo per file, va bene, fino a quando
sto scrivendo il testo a TextWriter. Voglio l'UTF-16 Byte Order Mark (BOM) ad apparire nell'output: public void ProcessRequest(HttpContext context)
{
context.Response.ContentEncoding = new Unico