Is there any encoding format or standard that satisfies the following conditions?
- A-Z and a-z should be encoded as 1-26.
- Any other character could be greater than 26.
If not, what is the best way to do such conversion?
Hash map is one obvious way, but my ruby intuition says there must be something better.