Response.Charset = "utf-8"; Response.ContentEncoding = System.Text.Encoding.GetEncoding("GB2312"); 上面两句是设置文字编码的
StreamWriter writer = new StreamWriter(this.filepath, false, Encoding.Default);