Output response in ANSI character format in ASP.net
I am writing data to the output browser using Response.write (some byte arrangements)
Response.ContentType = "application/ms-excel";
Response.ContentEncoding = System.Text.Encoding.Default;
Response.OutputStream.Write(report, 0, report.Length);
Response.Flush();
Response.Close();
I have ANSI characters in my file, I need to write ANSI information when I open the excel file. Do I need to add anything.
I coded it in ANSI but didn't work.
0
source to share