The method below downloads the document that is generated dynamically, however when the file is opened it shows a file conversion option, leaving the Unicode (UTF-8) checked by default.
What do you do to not show this message?
public static void gerarRelatorioAtoDoc(string texto)
{
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.Charset = "";
HttpContext.Current.Response.ContentType = "application/msword";
String strNomeArquiv = "RelAtoGerado" + DateTime.Now.ToShortDateString().ToString() + ".doc";
HttpContext.Current.Response.AddHeader("Content-Disposition", "inline;filename=" + strNomeArquiv);
StringBuilder strHTMLContent = new StringBuilder();
strHTMLContent.Append(texto);
HttpContext.Current.Response.Write(strHTMLContent);
HttpContext.Current.Response.End();
HttpContext.Current.Response.Flush();
}