lincolnloop / python-qrcode

Python QR Code image generator
https://pypi.python.org/pypi/qrcode
Other
4.36k stars 666 forks source link

Is it possible to add Alphanumeric string instead of binary data to make QR code? #177

Closed yo1995 closed 5 years ago

yo1995 commented 5 years ago

I've read from QR code's website and found that for each code, the capacities for different codeword set are not the same.

https://www.qrcode.com/en/about/version.html

For example, a version 2 code can have 47 alphanumeric characters, whereas only 32 binary bytes.

Therefore, I wonder if I can add alphanumeric characters, such as uppercase string to make a code instead of binary data? So that the code can hold a longer string within the same version number.

Thanks. 😄

Currently according to my test, this lib treat all data as binary ones, and follows the version capacity of binaries. If that is mistaken, please correct me.

yo1995 commented 5 years ago

Alright, it seems that I'm mistaken...it does treat alphanumeric as it is! never mind. 😅