Firebase按键-允许的字符 [英] Firebase push key - allowed characters
问题描述
我想知道按键中允许使用哪种字符.它还会生成符号下划线(_)吗?我总是会收到带有-字母的按键.
I am wondering what kind of characters are allowed in the push key. Does it generate also a symbol underscore(_)? I always get a push key with letters with -.
推荐答案
推键使用修改后的Base64字母:
Push keys use a modified Base64 alphabet:
-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz
它们由时间戳和随机值组成.在此处中进行描述.
They are comprised of a timestamp and a random value. The algorithm is described here.
一般来说,使用Firebase密钥时,会出现一小部分非法字符,这些字符在此答案中列出:
With Firebase keys in general, there is a small set of illegal characters and they are listed in this answer:
字符集限制
Character Set Limitations
请注意,用于构造Firebase引用的URL可能包含任何 Unicode字符,除了:
Note that URLs used to construct Firebase references may contain any unicode characters except:
- . (句号)
- $(美元符号)
- [(左方括号)
- ](右方括号)
- #(井号或井号)
- /(正斜杠)
- . (period)
- $ (dollar sign)
- [ (left square bracket)
- ] (right square bracket)
- # (hash or pound sign)
- / (forward slash)
这篇关于Firebase按键-允许的字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!