URI方案的有效字符? [英] Valid characters for URI schemes?
本文介绍了URI方案的有效字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在考虑将应用程序注册到URL协议,我想知道,方案中允许使用哪些字符?
I was thinking about Registering an Application to a URL Protocol and I'd like to know, what characters are allowed in a scheme?
一些例子:
- h323 (具有数字)
-
h323:[<user>@]<host>[:<port>][;<parameters>]
- h323 (has numbers)
h323:[<user>@]<host>[:<port>][;<parameters>]
-
z39.50r://<host>[:<port>]/<database>?<docid>[;esn=<elementset>][;rs=<recordsyntax>]
-
paparazzi:http:[//<host>[:[<port>][<transport>]]/
那么,我想使用什么字符?
我们可以...So, what characters can I fancy using?
Can we have...-
@:TwitterUser
-
#:HashTag
-
$:CapitalStock
-
?:ID-10T
@:TwitterUser
#:HashTag
$:CapitalStock
?:ID-10T
...根据需要等,还是该方案中的字符受标准限制?
...etc., as desired, or characters in the scheme are restricted by standard?
推荐答案
根据 RFC 2396 ,附录A:
scheme = alpha *( alpha | digit | "+" | "-" | "." )
含义:
该方案应以字母(大写或小写)开头,并且可以包含字母(大写和小写),数字,"+",-"和.".
The scheme should start with a letter (upper or lower case), and can contains letters (still upper and lower case), number, "+", "-" and ".".
注意:对于
paparazzi:http:[//<host>[:[<port>][<transport>]]/
该方案只是狗仔队"的一部分.
the scheme is only the "paparazzi" part.
这篇关于URI方案的有效字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
-
查看全文