Special character escaping encoding in URL URLs

Source: Internet
Author: User
Special character escape encoding character in URL URL-URL encoded value space-%20 "-%22#-%23%-%25&-%26 (-%28)-%29+-%2b,-%2c/-%2f:-%3a; -%3b<-%3c=-%3d>-%3e? -%3f@-%40\-%5c| -%7c URL special character escapes the special meaning of some characters in the URL, the basic encoding rules are as follows: 1, spaces replaced by plus (+) 2, forward slash (/) delimited directory and subdirectory 3, question mark (?) Separating URLs and queries 4, percent sign (%) make special characters 5, #号指定书签6, & separated parameters if needed in the URL, you need to change these special characters to the corresponding hexadecimal value +%2b/%2f?%3f%%25#%23&% 26 due to the frequent use of Ajax in the project to send SQL to the backend server will encounter select Num+1 from dual or left and right connection form. Always throw away (+) This time can try to use the URL special character escape with JS encodeURI () function or directly to the corresponding hexadecimal value to see the online introduction encodeURI function is also said URI escape

Special character escaping encoding in URL URLs

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.