Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

QRCode read error when contains '#10' #163

Closed
EguitarRed opened this issue Dec 13, 2023 · 4 comments
Closed

QRCode read error when contains '#10' #163

EguitarRed opened this issue Dec 13, 2023 · 4 comments

Comments

@EguitarRed
Copy link
Contributor

This QRcode:

test_qr

Is readed incorrectly because the text contains #10.

I found an incorrect line code in ZXing.QrCode.Internal.DecodedBitStreamParser line 256.

I changed:

s:= res.toString.Replace('#13#10', '#10').Replace('#10', #13);

for:

s:= res.toString.Replace(#13+#10, #10).Replace(#10, #13);

And works correctly now.

@Spelt
Copy link
Owner

Spelt commented Dec 13, 2023 via email

@EguitarRed
Copy link
Contributor Author

I'm currently using Zxing on Delphi 12 and testing with android 12 and 13. Works correctly.

@Spelt
Copy link
Owner

Spelt commented Dec 13, 2023 via email

@Spelt
Copy link
Owner

Spelt commented Dec 15, 2023

Its commited and pushed. Thanks!

@Spelt Spelt closed this as completed Dec 15, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants