Skip to content
Discussion options

You must be logged in to vote

Based on how we're using the encoding library and how it works generally (eg doesn't attempt to break the string into multiple segments for split encoding), the safest thing is to assume byte mode. Version is autodetermined, so assume version=40 as your upper bound, and then you control the error correction level, so that factors in but is in your control. With that…

The official website has the table documenting this (select 31-40 to see the max): https://www.qrcode.com/en/about/version.html. It's useful but not necessarily a straightforward answer. Byte mode is how your would handle Unicode but those aren't always the same number of bytes. JS strings are historically UCS-2 and thus take…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Parth909
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #330 on January 05, 2024 22:19.