How can I encode an ascii string in base 15?
In other words, I have the following characters available:
I have no idea how to do this. What do you suggest I do?
(If this is not on-topic, please migrate.)
Computer Science Stack Exchange is a question and answer site for students, researchers and practitioners of computer science. It only takes a minute to sign up.Sign up to join this community
Let's take a different view angle.
The problem is not really about encoding something like "decimals numbers" 0..127 into base-15 (which is messy). It's about converting a base-127 string into base-15. If you can see it that way, then it's just the same principle as with converting from, say, base-16 (hex) to base-10 (decimal), or base-10 to base-2.