multiformats / multibase

Self identifying base encodings
286 stars 74 forks source link

Reserving whitespace characters (and possibly other characters) #126

Open ben221199 opened 3 months ago

ben221199 commented 3 months ago

In #64, @Stebalien suggested using space (\x20) for base 45, but it ended up using R. With this issue I want to open a discussion on reserving whitespace characters (and possibly others), because I don't think it is a good practise to use those.

Where spaces in the middle of a string do not create a big issue, other than "Does these two parts belong to the same code?", whitespaces on the start and end of the code will do. Why? Because many systems, even our brain sometimes, have trimming functions. If I copy a code to my browser URL bar to remove markup, the spaces on the start and end are gone. If you send a code inside HTML/XML tags? Gone. In my opinion, using these characters is very bad practise.

Which characters would be nominated?

In the ASCII block at least:

In the extended ASCII block at least: