[英]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.