Support for ASCII QR Codes
·2 min read
With a few improvements to our UI particularly in regards to font rendering, we now support ASCII QR codes. Actually UTF-8, but no one says "UTF-8 Art". Or maybe the do now and I'm just way behind. In any case, we now support ASCII and UTF-8 QR codes.
Strings we test with
While working on this update we came up with a few strings that are useful for testing. Here are a few of them:
TESTING:
To test the readability and distinguishability of various characters,
including commonly problematic ones, use the following command to generate
a QR code. This will help validate how different characters are rendered
and perceived in different contexts:
$ qrencode -t UTF8i "5uP0R s3kRU7\!"
█▀▀▀▀▀█ ▄█ █▀ █▀▀▀▀▀█
█ ███ █ ▀█ ▄▀ █ ███ █
█ ▀▀▀ █ █ ▄█ █ ▀▀▀ █
▀▀▀▀▀▀▀ █▄█▄█ ▀▀▀▀▀▀▀
▀█▄▀ ▀▀ ▀▀▄ ▄▀▀█ ▀▀▄
█ █ █▀▄▄██▄▀ ▄ ▄█▀ █
▀ ▀ ▀ ▀▀▄▀█▄█ ▄ ▀█▀██
█▀▀▀▀▀█ ▀▄█▀█▀▀█▀█▀
█ ███ █ ▄▀▀██▄█▄▄▀ ▄▄
█ ▀▀▀ █ ▄█▄ ▀▄ ▄▀ ▀ ▀
▀▀▀▀▀▀▀ ▀ ▀▀ ▀ ▀▀
Here is a comprehensive string that includes a mix of problematic
characters (such as 'o', '0', 'l', '1', 'I') and regular
characters, numbers, and symbols:
a0oO1lI2b3c4d5e6f7g8h9iIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ0123456789!
@#$%^&*()_+-=[]{}|;:',.<>?/~`a0oO1lI2b3c4d5e6f7g8h9iIjJkKlLmMnNoOpPqQ
rRsStTuUvVwWxXyYzZ0123456789!@#$%^&*()_+-=[]{}|;:',.<>?/~`a0oO1lI2b3c
4d5e6f7g8h9iIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ0123456789!@#$%^&*()_+
-=[]{}|;:',.<>?/~`
Additionally, here are some leetspeak words to further test and
validate character rendering:
h3ll0 w0rld 1337 c0d3 pr0gr4mm3r h4ck3r s3cur1ty 3xpl01t 5up3r s3kRU7