开发者

browser auto decode url, is this a standard?

开发者 https://www.devze.com 2023-01-23 13:08 出处:网络
if you use the php function \"urlencode\" encode a url, and then put the result to a form item\'s value. the value will be decode by the brows开发者_高级运维er. is this a standard?kinda de-facto stand

if you use the php function "urlencode" encode a url, and then put the result to a form item's value. the value will be decode by the brows开发者_高级运维er. is this a standard?


kinda de-facto standard yes. but only in modern browsers. its done for user convienience, so you can put utf8 charactesr in an url and its still pretty to the human eye. however please be aware that the text is actually still encoded and will be transmittet/requested encoded, it is only displayed decoded. internet explorer 6 is to my knowledge the most modern browser that does not support this yet.

0

精彩评论

暂无评论...
验证码 换一张
取 消