URL编码

URL中如果需要GET参数的话,有点时候会出现附加在后面的字符拥有特殊含义从而需要转义字符的时候。以下是一些简单的规范:

1)Letters (A-Z and a-z), numbers (0-9) and the characters “.”, “-”, “~” and “_” are left as is

2)  SPACE is encoded as “+”

3) All other characters are encoded as %FF hex representation with any non-ASCII characters first encoded as UTF-8 (or other specified encoding)

This entry was posted on Friday, November 13th, 2009 at 3:30 pm and is filed under IT . You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Comments are closed.

  • English Version

    • Cannot read Chinese? Please take a look at my English site, hope you can find more you need there!
  • 感谢支持

  • twitter

    facebook

    linkedin

  • Categories