vue-qrcode-component icon indicating copy to clipboard operation
vue-qrcode-component copied to clipboard

QR Code Not Generated for Strings of 192 to 217 Characters

Open Revanjin opened this issue 10 months ago • 0 comments

We've observed that URLs or strings ranging from 192 to 217 characters fail to generate a QR code. The issue stems from a specific line in the code:

javascript if(buffer.getLengthInBits()+4<=totalDataCount*8){buffer.put(0,4);}

The error encountered is: Uncaught (in promise) Error: code length overflow. (1756>1056)

Furthermore, we confirmed this behavior on the website Vue QR Code Component. Any input within the specified character range fails to produce a QR code.

Revanjin avatar Apr 19 '24 11:04 Revanjin