I'm using this to write to the Response stream:
using (var writer = new StringWriter()) { context.Server.Execute(virtualpath, writer); string s = writer.ToString().Replace(...); context.Response.Write(s); } But I'm getting a byte order mark in the response. Am I screwing up the encoding? How do I NOT return the BOM?
EDIT: SOrry Rubens, my first example was incorrect.