Closed gjvnq closed 3 years ago
Thanks for the proposal, this part indeed is confusing.
The reason why there are no ASCII codes in the table is, that the Multibase prefixes are really about characters and thus depend on your string encoding. Practically it often matches an ASCII code as ASCII compatible encodings are widely used. Though if you look at the note in the README:
NOTE: Multibase-prefixes are encoding agnostic. "z" is "z", not 0x7a ("z" encoded as ASCII/UTF-8). For example, in UTF-32, "z" would be
[0x7a, 0x00, 0x00, 0x00]
.
It explains the problem. The prefix is not always a single ASCII character.
Reading the table, it can be a bit confusing if the
code
field is a char or an integer or, even worse, an escape code (like\t
and\b
).I think that reformating the table in the following manner can avoid confussion.