2017-06-19 49 views

回答

2

不,您的网页浏览器不是问题。

此代码:

context.Response.ContentType = "text/html"; 
context.Response.ContentEncoding = UnicodeEncoding.BigEndianUnicode; 
context.Response.Write("Hello World"); 

产生预期的内容编码:

encoding

但只要你使用context.Response.WriteFile,内容编码被删除。不知道这是否是一个功能。我假设另一端的软件必须根据返回的输出来确定内容编码。

相关问题