asp.net – context.Response.Charset = Encoding.UTF8.ToString
发布时间:2020-12-16 04:01:03 所属栏目:asp.Net 来源:网络整理
导读:我在我的代码中使用了这个来设置Charset,但IE不喜欢它.有什么理由吗? context.Response.Charset = Encoding.UTF8.ToString(); 我最终必须将它设置为context.Response.ContentType =“application / json; charset = utf-8”或context.Response.Charset =“u
我在我的代码中使用了这个来设置Charset,但IE不喜欢它.有什么理由吗?
context.Response.Charset = Encoding.UTF8.ToString(); 我最终必须将它设置为context.Response.ContentType =“application / json; charset = utf-8”或context.Response.Charset =“utf-8”;代替.不知道那是什么Encoding.UTF8.ToString();如果IE无法接受它将被用于 解决方法Context.Response.Charset = Encoding.UTF8.WebName; 获取为Internet Assigned Numbers Authority(IANA)注册的当前编码名称. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net – 禁止从IIS 7继承“允许所有用户”规则
- asp.net-mvc-4 – 使用asp.net MVC4,如何在默认情况下执行r
- .net – IAuthenticationFilter.OnAuthenticationChallenge
- asp.net – 有没有办法将动态文本应用于webform上的标记?
- asp.net-mvc – 像Stack Overflow这样的网站如何在ASP.NET
- asp.net – 为什么在VS2008 / Casini中开始调试时Applicati
- asp.net-mvc-4 – 用于继承类型的WebApi模型绑定
- JSON字符串反序列化成对象_部分属性值反序列化失败
- asp.net-mvc-3 – ASP.NET MVC 3:当BeginForm在布局上时生
- .net – 在Request.Form中搜索控件/解析NameValueCollectio
推荐文章
站长推荐
- 在ASP.Net网站项目中混合VB.Net和C#代码?
- ASP.NET总结
- asp.net-mvc – 在ASP.NET MVC中的NHibernate会话
- asp.net – CollapsiblePanelExtender在初始页面
- 什么是ASP.NET中的gpstate文件
- asp.net-mvc – 具有相同签名的ASP.NET MVC 1.0控
- 初识ABP vNext(4):vue用户登录&菜单权限
- asp.net-mvc – 使用MVC和WebAPI避免使用Resharp
- asp.net-mvc – 绑定到Viewmodel的文件上传
- asp.net-mvc – ELMAH – 使用自定义错误页面收集
热点阅读