Valid characters for URI schemes?

前端 未结 3 579
醉梦人生
醉梦人生 2020-12-10 01:01

I was thinking about Registering an Application to a URL Protocol and I\'d like to know, what characters are allowed in a scheme?

Some examples:

  • h323
3条回答
  •  南方客
    南方客 (楼主)
    2020-12-10 01:08

    According to RFC 2396, Appendix A:

      scheme        = alpha *( alpha | digit | "+" | "-" | "." )
    

    Meaning:

    The scheme should start with a letter (upper or lower case), and can contains letters (still upper and lower case), number, "+", "-" and ".".


    Note: in the case of

    paparazzi:http:[//[:[][]]/
    

    the scheme is only the "paparazzi" part.

提交回复
热议问题