本文介绍了为什么有些网站的标题中有?utf8 =✓?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到很多网站在搜索或浏览时都会添加一个名为 utf 的get变量,并将其设置为复选标记(?utf8 =✓)。

I've noticed that a lot of websites, when searching or just browsing, will add a get variable called utf and set it equal to a check mark (?utf8=✓).

两个例子是:


  • Dotabuff的搜索网址包含它。示例:dotabuff.com/search?utf8=✓&q=PPD

  • Dotabuff has its search URL include it. Example: dotabuff.com/search?utf8=✓&q=PPD

Bibme的搜索网址也包含它。示例:bibme.org/mla/website-citation/search?utf8=✓&q=someurl.com

Bibme also has its search URL include it. Example: bibme.org/mla/website-citation/search?utf8=✓&q=someurl.com

推荐答案

URI包含 utf8 =✓以强制客户端发送UTF-8。

它的工作原理是因为key-value-pair(服务器忽略)包含一个仅unicode字符。

URIs contain utf8=✓ to force the client to send UTF-8.
It works because the key-value-pair (which is ignored by the server) contains a unicode-only character.

来自:

如果参数是 utf8 = true ,那么这不会在这些浏览器中触发UTF-8编码。

If the parameter was instead utf8=true then this wouldn't trigger the UTF-8 encoding in these browsers.

这篇关于为什么有些网站的标题中有?utf8 =✓?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 02:49