qrcodejs
qrcodejs copied to clipboard
Non UTF-8 characters make the qrcode invalid
Can be reproduced using
https://codepen.io/davidshimjs/pen/NdBYrg
In the JS, line nr 12, change to following:
qrcode.makeCode("íadsfasdsöadfas");
It doesn't draw anything.
I observed some strange behaviour regarding this.
ö
works
ö1
works
ö12
does not work
ö123
works
ö1234
works
ö12345
does not work
ö123456
does not work
it does not matter if the chars after ö
are 1 2 3
or a b c
. Same behaviour for äÄ
öÖ
and üÜ
.
This issue was fixed by pull request #273. Thanks to 19z.
Looks like this repo is no longer maintained, so you can find the fork here.
The minified version of that fork returns an error here:
Uncaught SyntaxError: Unexpected identifier (at qrcode.min.js:1:16790)
However downloading the non-minified version and minifying it myself works. So, looks like the minified version of the fork is corrupted.
(and I can't find a way to contact the fork's author @19z either, so I'm leaving this warning here...)
@davidshimjs Please help me clarify some of my doubts regarding the qrcode.js library.
Is there any limitation of this library/cdn? Can anyone provide me with the pros and cons of the qrcode js library? I am using this cdn in my code: - "https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js Please help me by providing answers to my question
I was trying to find answers to my doubts regarding the qrcode.js library in its documentation, but I couldn't find answers to my questions anywhere.