为什么Internet Explorer不对网址进行网址编码? [英] Why Internet Explorer doesn't url-encode the urls?
问题描述
我按如下方式启动IE(第7版):
I launch the IE (7th version) as follows:
"C:\Program Files\Internet Explorer\iexplore.exe" "http://somewhere.com/q=фыва"
除了将фыва"部分替换为"????"之外在cmd
中.
except that "фыва" part is replaced by "????" in cmd
.
启动IE时,它会在地址栏中显示预期的url,但是如果我查看实际流量,则会发送????
(3f3f3f3f
).我希望它可以对它进行url编码(实际上,它确实将确实 url编码为%20").
When IE boots up, it displays the expected url in address bar, but if I take a look at the actual traffic, ????
is sent (3f3f3f3f
). I expected it to url-encode it (and actually, it does url-encode spaces to "%20").
有没有办法使它向服务器发送正确的数据?
Is there a way to make it send the proper data to server?
推荐答案
URL中禁止使用Unicode字符
Unicode characters are forbidden in urls see
%将Unicode字符自己编码为- http://somewhere.com/q=%D1%84%D1%8B%D0%B2%D0%B0
% encode the unicode chars yourself to - http://somewhere.com/q=%D1%84%D1%8B%D0%B2%D0%B0
它可能会将其删除为功能
这篇关于为什么Internet Explorer不对网址进行网址编码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!