HttpHandler指定中文编码返回
2016-01-05 15:00:40 访问(1472) 赞(0) 踩(0)
public void ProcessRequest (HttpContext context) {
context.Response.ContentType = "text/plain";
string theResult = Do(context, null);
context.Response.ContentEncoding
=
System.Text.Encoding.GetEncoding("gb2312"); // System.Text.Encoding.UTF8;
context.Response.Write(theResult);
}
标签:
HttpHandler指定中文编码返回 


上一条:
下一条:
相关评论
发表评论