Hi.
I use this code to download files from server to the client:
HttpContext.Current.Response.ClearHeaders();
HttpContext.Current.Response.ClearContent();
HttpContext.Current.Response.ContentEncoding = new UTF8Encoding(true);
Response.AddHeader("Content-Disposition", "attachment;filename= Test.csv");
HttpContext.Current.Response.ContentType = "text/csv";
HttpContext.Current.Response.Write("some Text");
HttpContext.Current.Response.End();
Problem is, that in downloaded file is missing BOM (Byte Order Mark). What I have to do to add BOM into my file.
Thank you for your help.
Go to the complete details ...