-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non UTF-8 characters make the qrcode invalid #266
Comments
I observed some strange behaviour regarding this.
it does not matter if the chars after |
The minified version of that fork returns an error here:
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 Is there any limitation of this library/cdn? 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. |
@agijbels your title makes no sense as your test string is valid UTF-8, maybe you meant "non-ascii characters" or "non-latin characters" ? An example of "invalid UTF-8" would be |
Yes, the title does not make sense, but I wasn't able to edit the title? I
meant non-ascii characters.
Met vriendelijke groeten,
Annelies Gijbels
Op ma 15 jul 2024 om 20:18 schreef divinity76 ***@***.***>:
… øll triggers the error.
@agijbels <https://github.com/agijbels> your title makes no sense as your
test string is valid UTF-8, maybe you meant "non-ascii characters" or
"non-latin characters" ?
An example of "invalid UTF-8" would be "\xC0\xAF"
—
Reply to this email directly, view it on GitHub
<#266 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANLYUVBBVB3NZUOMISWGXJ3ZMQG7FAVCNFSM6AAAAABK5BTUR6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRZGEYTAOJXGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
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.
The text was updated successfully, but these errors were encountered: