-
Notifications
You must be signed in to change notification settings - Fork 204
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
QRCode read error when contains '#10' #163
Comments
Thanks!
I will add the matrix code to the unit test and include the fix. Probably
this weekend.
I'm also testing and releasing for mobile and Delphi 12.
…On Wed, 13 Dec 2023 at 11:21, EguitarRed ***@***.***> wrote:
This QRcode:
test_qr.png (view on web)
<https://github.com/Spelt/ZXing.Delphi/assets/33684165/563ad563-f506-4632-a6ec-9639097849aa>
Is readed incorrectly because the text contains #10
<#10>.
I found an incorrect line code in
ZXing.QrCode.Internal.DecodedBitStreamParser line 256.
I changed:
s:= res.toString.Replace('#13
<#13>#10', '#10
<#10>').Replace('#10
<#10>', #13
<#13>);
for:
s:= res.toString.Replace(#13
<#13>+#10
<#10>, #10
<#10>).Replace(#10
<#10>, #13
<#13>);
And works correctly now.
—
Reply to this email directly, view it on GitHub
<#163>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADAS3VOXBRNWTARDP6EKZJLYJF6UHAVCNFSM6AAAAABAS43DHKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZTSMZZGQYTGNQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I'm currently using Zxing on Delphi 12 and testing with android 12 and 13. Works correctly. |
Thanks,
I also did not experience a problem.
…On Wed, 13 Dec 2023 at 11:31, EguitarRed ***@***.***> wrote:
I'm currently using Zxing on Delphi 12 and testing with android 12 and 13.
Works correctly.
—
Reply to this email directly, view it on GitHub
<#163 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADAS3VJG3DCEVY47K2C3AKTYJF7XPAVCNFSM6AAAAABAS43DHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJTGY2TMMBZGU>
.
You are receiving this because you commented.Message ID: <Spelt/ZXing.
***@***.***>
|
Spelt
pushed a commit
that referenced
this issue
Dec 15, 2023
Its commited and pushed. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This QRcode:
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.
The text was updated successfully, but these errors were encountered: