Why url encode, or which characters to encode

后端 未结 4 943
独厮守ぢ
独厮守ぢ 2021-01-04 08:46

http://www.w3schools.com/tags/ref_urlencode.asp

Since URLs often contain characters outside the ASCII set, the URL has to be converted into a valid

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-04 09:22

    Here you go:

    When are you supposed to use escape instead of encodeURI / encodeURIComponent?

    This is the best explanation I found and was helpful to me.

提交回复
热议问题