-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add examples of reading the generated QR codes #16
Comments
That would certainly be an option. I've noticed that |
That only is a problem for hard dependencies, like "Imports". But "Suggests" is a soft dependency, so either package can be loaded without the other, so there is no problem. |
I wrote a little test function. It works with ascii but fails with special characters.
|
Good catch. I see that you explicitly convert all input to However latin1 is a legacy encoding that only works for european text and does not support Chineese, emojis, etc. Most widely used qr encoders/decoders assume text is UTF-8 encoded from what I read from here. I think the best solution is to update qrcode to always call |
Handling UTF-8 as UTF-8 is not as simple as just using |
The latest version of opencv can detect and decode QR codes: https://docs.ropensci.org/opencv/reference/qrcode.html
We could use this for unit tests or user examples of reading the generated QR back into R.
The text was updated successfully, but these errors were encountered: