8000 DetectedBarcode.rawValue could be binary data. · Issue #35 · WICG/shape-detection-api · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

DetectedBarcode.rawValue could be binary data. #35

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

Open
yell0wd0g opened this issue Jul 26, 2017 · 2 comments
Open

DetectedBarcode.rawValue could be binary data. #35

yell0wd0g opened this issue Jul 26, 2017 · 2 comments

Co 8000 mments

@yell0wd0g
Copy link
Collaborator

DetectedBarcode.rawValue is defined as a DOMString, whereas depending on the barcode itself, it could be binary. Adapt the Spec to reflect that.

@reillyeon
Copy link
Collaborator

I've investigated the question of whether or not QR codes can contain binary data and found that it is not the case. The "binary mode" seems to default to the ISO-8859-1 but can be overridden to other character sets using ECI hints.

Importantly, in our implementation experience within Chromium we found that the barcode detection APIs on Android and macOS return the decoded value as their native string types which are defined as containing UTF-16 codepoints.

@reillyeon
Copy link
Collaborator

I have repeated this analysis in investigating Chromium issue 1023177 and determine that this data in available from platform barcode scanning APIs.

@reillyeon reillyeon reopened this Jan 31, 2020
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
0