简体   繁体   English

如何在ASP.NET网页中测试请求/响应编码

[英]How to test Request/Response encoding in asp.net web page

I was asked to change Encoding type in asp.net web application to UTF-8 我被要求将asp.net Web应用程序中的编码类型更改为UTF-8

So made changes as per recommended setting. 因此,按照建议的设置进行了更改。 added encoding type in Web config. 在Web配置中添加了编码类型。

<globalization

  requestEncoding="utf-8" 
  responseEncoding="utf-8"    />

Can you please guide me how I can test change? 您能指导我如何测试变更吗?

I would check the site with Fiddler before the change and after. 在更改前后,我都会与Fiddler一起检查该网站。 See whether the site now returns Content-Type: text/html; charset=utf-8 查看网站现在是否返回Content-Type: text/html; charset=utf-8 Content-Type: text/html; charset=utf-8 as one of the response headers, and whether non-ASCII characters are shown correctly" - eg this " " should be a snowman, not a ? or the "missing character" square. Content-Type: text/html; charset=utf-8作为响应头的一个,以及是否非ASCII字符被正确地示出” -例如,这个‘ ’应该是一个雪人,而不是一个?或‘缺失字符’正方形。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在同一页面中使用Post Method请求和响应Web表单c#asp.net - Request and response web form using Post Method in same page c# asp.net ASP.NET Web Forms:对外发起API请求并在页面显示响应 - ASP.NET Web Forms: Make an external API Request and display response on page 在不提供网页的情况下在ASP.NET中处理Web请求 - Processing a web request in ASP.NET without serving a web page ASP.NET中响应筛选器的编码问题 - Encoding issue with Response filter in asp.net 如何从PHP请求到方法发布到asp.net Web服务并获得响应 - how to request with method post to asp.net web service from php and get response ASP.NET 核心 Web API - 如何在 MediatR 中指定请求和响应 DTO - ASP.NET Core Web API - How to specify request and response DTOs in MediatR 如何将控件传递给另一个Web应用程序并在我的asp.net页面中获取响应? - how to pass the control to another web application and get back the response in my asp.net page? ASP.NET web 页面通过请求在 Azure AD 中进行身份验证 - ASP.NET web page authenticate in Azure AD by request asp.net网页请求发布参数 - asp.net web page request post parameters 运行由 ASP.NET web 页面请求触发的异步操作 - Running an asynchronous operation triggered by an ASP.NET web page request
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM