Transformed character in the URL

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/cxh6863/article/details/100187283

Due

Because before there are special characters in a string # where you want to pass this parameter to query the data, but does not always display the data from the database is in fact, can be found, so finding out the reason is that the URL in your browser We do not recognize the special characters that he transformed into anything else, so you can not find it in the database. The solution to this problem is to pass before this parameter, the special character transformed into a browser URL can recognize, so it.

method

Find these special characters encoded, plus front% number can be.
Format:% + ASCII character code
such as: number of + represents "% 2B"

Special characters corresponding conversion

No. Special characters After conversion
1 + % 2B
2 Blank %20
3 / % 2F
4 ? % 3F
5 % %25
6 # %23
7 & %26
8 = % 3D

Guess you like

Origin blog.csdn.net/cxh6863/article/details/100187283
URL
URL
URL