Skip to content

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

Merged
khanamiryan merged 1 commit into
khanamiryan:masterfrom
LZZZZ:binary_mode
Jun 10, 2025
Merged

Added a new hint BINARY_MODE to allow working with binary QRCodes.#158
khanamiryan merged 1 commit into
khanamiryan:masterfrom
LZZZZ:binary_mode

Conversation

@LZZZZ

@LZZZZ LZZZZ commented Jun 7, 2025

Copy link
Copy Markdown

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