-
Notifications
You must be signed in to change notification settings - Fork 596
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
Code with Chinese can't be parsed #214
Comments
Another example. The content of this QR code is "http://sagasou.mobi MEBKM:TITLE:探そうモビで専門学校探し!;URL:http://sagasou.mobi;;". |
Due to how "data" is handled in this lib, you may not use it if the code doesn't contain ASCII data (which it does not, here). You also happen to use an old text encoding (notably GBK) and in JS this is not exactly trivial to handle traditionally. new TextDecoder("gbk").decode(Uint8Array.from(result.binaryData)) And that'll give you the string you were trying to get. |
You must use correct encoding to parse raw result. |
These two QR codes are generated using the same way, and the one on the left that contains Chinese cannot be parsed.
Return Data:
The text was updated successfully, but these errors were encountered: