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.)

  • 2
    $\begingroup$ What are your thoughts? What approaches have you already considered? $\endgroup$ – D.W. May 1 '17 at 17:27
  • $\begingroup$ What do you mean by "encode an ascii string in base 15"? Can you give some concrete examples. When you really understand the question enough that you can explain it clearly to other people, you will have a better idea of where to start looking for a solution. $\endgroup$ – Code-Guru May 1 '17 at 23:12

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.

| cite | improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.