-
Notifications
You must be signed in to change notification settings - Fork 521
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
Unable to encode high-byte order Unicode characters #41
Comments
This is a correct raw byte sequence for encoding "π": 71 a4 04 f0 9f 94 9d 00 ec 11 ec 11 ec 11 ec 11 It looks like qrbtf does not support Mode 7. Here's a valid byte sequence with Mode 4: 40 4f 09 f9 49 d0 ec 11 ec 11 ec 11 ec 11 ec 11 |
The issue seems to be the encoding algorithm is for UTF-8 code units, but I suggest we use an external library to make more reliable encoding of input strings. |
β¦rectly byte-encoded
input strings with unicode characters at high code points were not encoded correctly, such as "π"
input strings with unicode characters at high code points were not encoded correctly, such as "π"
Just ran into this issue trying to add my WiFi |
There seems to be an issue with the Unicode character handling.
I am able to encode β for example which is U+2198
Raw bytes encoded are:
40 7e fb bb fe 28 69 82 00 ec 11 ec 11 ec 11 ec
However a larger Unicode character π is U+1F51D
This gets encoded with the following raw bytes:
40 9e fb bb fe da 0b de db 49 d0 ec 11 ec 11 ec
Somehow this is not correct because of a failure to reproduce the Unicode character, although I'm still unsure exactly what the failure is, I suspect it is in
QR8BitByte()
.The text was updated successfully, but these errors were encountered: