Why should I use urlencode?

后端 未结 6 1174
别那么骄傲
别那么骄傲 2020-11-27 03:41

I am writing a web application and learning how to urlencode html links...

All the urlencode questions here (see tag below) are \"How to...?\" questions.

M

6条回答
  •  南笙
    南笙 (楼主)
    2020-11-27 04:14

    There're RFCs (http://www.faqs.org/rfcs/rfc1738.html and the like) that define format for URLs, and browser/web server developers rely on this as a standard for interpreting data. If you don't comply, the results may be unpredictable.

    HTTP URL has its specification, and it states that practically all non-latin characters need to be encoded.

提交回复
热议问题