by Karellen · 2y ago · 0 comments
0: https://en.wikipedia.org/wiki/QR_code#Information_capacity
https://i.imgur.com/cAVbqka.png
Because of quirks, in edge cases decimal is more efficient, but overall alphanumeric is better in QR code.
Abstractly, it requires approximately log(45)/log(16) output bits per input bit, an overhead of 37%.
Making this more concrete: each input byte is encoded as two hex digits, and two hex digits have to be encoded as two Alphanumeric characters. It thus takes 11 bits in the QR code bit stream to store 8 bits of input.
A base 38 alphabet is the maximal possible URI unreserved alphabet.