URL/Link 中的合法字符和非法字符是什么? [英] What are the legal and illegal characters in URL/Link?

查看:22
本文介绍了URL/Link 中的合法字符和非法字符是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果存在非法字符会怎样?URL 是否通过将非法字符编码为其他内容来自行修复?

What happens if there is a illegal character? Does the URL fix it self by encoding the illegal characters into something else?

推荐答案

此处

ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~:/?#[]@!$&'()*+,;=.任何其他字符都需要使用百分比编码进行编码(%hh).URI 的每一部分都有关于什么的进一步限制字符需要用百分比编码的词来表示.

ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~:/?#[]@!$&'()*+,;=. Any other character needs to be encoded with the percent-encoding (%hh). Each part of the URI has further restrictions about what characters need to be represented by an percent-encoded word.

这篇关于URL/Link 中的合法字符和非法字符是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆