What are the legal and illegal characters in URL/Link?

后端 未结 2 1723
盖世英雄少女心
盖世英雄少女心 2021-01-14 07:02

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

2条回答
  •  我在风中等你
    2021-01-14 07:46

    As explained here

    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.

提交回复
热议问题