Skip to content

Added a new hint BINARY_MODE to allow working with binary QRCodes. #158

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

Merged
merged 1 commit into from
Jun 10, 2025

Conversation

LZZZZ
Copy link

@LZZZZ LZZZZ commented Jun 7, 2025

Since mb_convert_encoding() was added to DecodedBitStreamParser.php, QRCodes containing binary data with non-printable bytes stopped working.

This PR adds a new hint BINARY_MODE that, when used, reverts to the previous mode of just appending the string without encoding conversion. This also adds a test case for QRCodes containing binary data.

Result->getRawBytes() is not an viable alternative because it keeps padding characters.

…created a test and fixed nullable parameters.
@khanamiryan khanamiryan merged commit 17c570b into khanamiryan:master Jun 10, 2025
4 checks passed
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

Successfully merging this pull request may close these issues.

3 participants