qrcodejs icon indicating copy to clipboard operation
qrcodejs copied to clipboard

Non UTF-8 characters make the qrcode invalid

Open agijbels opened this issue 3 years ago • 6 comments

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.

agijbels avatar Jan 07 '22 10:01 agijbels

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 üÜ.

FlorianJa avatar Apr 21 '22 08:04 FlorianJa

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.

jp-ed avatar Jun 17 '22 22:06 jp-ed

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...)

RMerl avatar Aug 03 '22 15:08 RMerl

@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.

onikaSharm1 avatar Sep 27 '23 11:09 onikaSharm1