1. 程式人生 > >網址URL中特殊字元轉義

網址URL中特殊字元轉義

字元  URL編碼

空格   %20
&        %26
%       %25
:         %3A
|         %7C

分析:

%253A == %3A == :
%257C == % 7C == |
%2520 == %20 == 空格
%2526 == %26 == &

&sfp=Year%253A2013%257CMake%253AChrysler%257CModel%253ATown%2520%2526%2520Country

等價於 

&sfp=Year:2013|Make:Chrysler|Model:Town & Country