qrcodejs icon indicating copy to clipboard operation
qrcodejs copied to clipboard

Error "code length overflow" ""solved""?

Open dmborque314 opened this issue 10 years ago • 7 comments

Hi, after successfully implementing this library into my project, sometimes I got this error. I finally realized it always happened when the encoded string contained non-US ASCII characters (p.e. á, ñ, í....)

Surprisingly this error occurred only with the minified version of the library.

Replacing the minified version for the full version solves this issue!

dmborque314 avatar Feb 04 '15 11:02 dmborque314

Thanks for your issue, you saved my time !! After a closer look this behavior has a logical explanation : Last edit

  • qrcode.js : 9 months ago
  • qrcode.min.js : 2 years ago

mthoretton avatar Jul 23 '15 20:07 mthoretton

Get the same problem today.Thanks for your solution.

qiangzi7723 avatar Dec 20 '17 08:12 qiangzi7723

Thanks for your issue,your issue help me solve the same problem.

zhaokgithub avatar Feb 07 '18 03:02 zhaokgithub

https://github.com/davidshimjs/qrcodejs/edit/master/qrcode.js get qrcode.js replace the old

Jean1024 avatar Jun 28 '18 03:06 Jean1024

Hi, after successfully implementing this library into my project, sometimes I got this error. I finally realized it always happened when the encoded string contained non-US ASCII characters (p.e. á, ñ, í....)

Surprisingly this error occurred only with the minified version of the library.

Replacing the minified version for the full version solves this issue!

This worked for me! Thanks

miguelpiza93 avatar Oct 11 '18 14:10 miguelpiza93

Another workaround may be to decrease correctLevel, e.g.: correctLevel: QRCode.CorrectLevel.L

pvyhnal-generalbytes avatar Nov 15 '19 16:11 pvyhnal-generalbytes

Another workaround may be to decrease correctLevel, e.g.: correctLevel: QRCode.CorrectLevel.L

This worked very good for me, thanks!

herbertRV avatar Aug 05 '22 20:08 herbertRV