Code:
Response.Buffer = true;
Response.AddHeader("Content-Disposition", string.Format("attachment;filename={0}", documentFileName ));
Response.ContentType = documentFoundContentType;
Response.ContentEncoding = System.Text .Encoding .UTF8 ;
Response.HeaderEncoding = System.Text .Encoding .UTF8 ;
Response.BinaryWrite(ms.ToArray());
The dilaogbox that offers me saving the file shows incorrect chars if documentFileName has name not in ASCII format. What I'm supposed to do to have the file name displayed correctly in this dialogbox and to have this file opened under the same name in MS Word, Excel whatever else?