Skip to content
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

UTF 8 support? #41

Open
qaywsx22 opened this issue Jul 24, 2020 · 2 comments
Open

UTF 8 support? #41

qaywsx22 opened this issue Jul 24, 2020 · 2 comments

Comments

@qaywsx22
Copy link

Please, encode this string
"one two три четыре fünf sechs"
and decode the resulting code. Last four words are decoded incorrectly.
The same thing happens if you encode this line in your example on your test site http://go-qrcode.appspot.com/

@skip2
Copy link
Owner

skip2 commented Jul 24, 2020

https://stackoverflow.com/questions/1612062/unicode-encoding-and-decoding-issues-in-qrcode might help. QR codes don't have a builtin UTF-8 encoding (just raw bytes). It seems prefixing the content with a byte order mark helps decoder software get the right encoding.

@qaywsx22
Copy link
Author

qaywsx22 commented Jul 25, 2020

Thanks for the quick response. Unfortunately, the addition of BOM helped only partially.
I can encode up to 3 letters "ö", then up to six letters does not work correctly. Starting with the seventh letter, it works every second time (7, 9, 11 ...).

Edit:
I found the source of the problem. The library works, the problem was with my QR-Code scanner App. You can close the ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants