Search code examples
asp.netansi

How write data to a text file using ANSI format


Using ASP.net, how do you write ANSI characters to a text file?

I need to write this file's text to the web browser. Do they support ANSI?


Solution

  • I don't do ASP, so I can't tell you how to do it exactly. But I believe most (all?) browsers do support ANSI plain text. You might return HTTP Content Type as text/plain, and send the text as the contents of your HTTP response.