Cyrillic characters in browser address bar

 ̄綄美尐妖づ 提交于 2019-12-20 04:50:12

问题


When I put cyrillic symbols in address bar like this:

http://ru2.php.net/manual-lookup.php?pattern=привет

it switches to

http://ru2.php.net/manual-lookup.php?pattern=%EF%F0%E8%E2%E5%F2

What does that characters -- %EF%F0%E8%E2%E5%F2 -- mean? And why is it happening?


回答1:


The characters are getting URL encoded. A URL may only contain a subset of ASCII characters, so anything outside plain alphanumeric and some special characters must be URL encoded.

Some browsers display non-ASCII characters as human readable characters, but that's entirely up to them. In protocols, URLs are always URL encoded.



来源:https://stackoverflow.com/questions/6483613/cyrillic-characters-in-browser-address-bar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!