qtQR adds BOM to the generated QR code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QR Tools |
New
|
Undecided
|
Unassigned |
Bug Description
qtQR 2.0~bzr33-2
Linux Mint 20.3, amd64
I tried to replicate a demaged QR code with qtQR but application cannot decode the QR code. I found that qtQR creates QR codes with BOM (UTF-8, Byte Order Mark).
I created QR of type "text" with value "TEST" but when I use BinaryEye mobile app, I see that QR code is generated with BOM - "{BOM}TEXT", where BOM is \xEF\xBB\xBF. Such information should not be in QR code, there is no need to use BOM for ASCII text. I cannot find any option to disable such behavior in qtQR.
It is interesting then when I try to decode QR code with "zbarimg", there is no information about BOM in the data... "zbarimg" is not reliable application to troubleshoot this issue!
$ zbarimg --xml qtQR-TEST-BOM-1.png
<barcodes xmlns='http://
<source href='qtQR-
<index num='0'>
<symbol type='QR-Code' quality='1' orientation=
</index>
</source>
</barcodes>
scanned 1 barcode symbols from 1 images in 0.04 seconds
$ zbarimg --version
0.23
Similar QR code can be generated with "qrencode" and that one has no BOM (I like it!):
$ qrencode -l L -s 5 -m 10 -o qrencode-
$ zbarimg --xml qrencode-
<barcodes xmlns='http://
<source href='qrencode-
<index num='0'>
<symbol type='QR-Code' quality='1' orientation=
</index>
</source>
</barcodes>
scanned 1 barcode symbols from 1 images in 0.01 seconds
I will attach some images.
BTW, BinaryEye can be downloaded from https:/
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Hi psl,
Please try with a newer version of QtQR, there's a checkbox now to include
(or not) the SBOM in the generated QR code.
El mar, 14 may 2024 a la(s) 9:50 p.m., psl (<email address hidden>)
escribió:
> ** Attachment added: "qtQR-screensho t-TEST- BOM.png: screenshot of qtQR - /bugs.launchpad .net/qr- tools/+ bug/2065725/ +attachment/ 5778442/ +files/ qtQR-screenshot -TEST-BOM. png /bugs.launchpad .net/bugs/ 2065725 zbar.sourceforg e.net/2008/ barcode'> TEST-BOM- 1.png'> 'UP'><data> <![CDATA[ TEST]]> </data> </symbol> QR-TEST- 1.png "TEST" QR-TEST- 1.png zbar.sourceforg e.net/2008/ barcode'> QR-TEST- 1.png'> 'UP'><data> <![CDATA[ TEST]]> </data> </symbol> /github. com/markusfisch /BinaryEye /bugs.launchpad .net/qr- tools/+ bug/2065725/ +subscriptions
> QR with BOM"
>
> https:/
>
> --
> You received this bug notification because you are a member of QR Tools
> Team, which is subscribed to QR Tools.
> https:/
>
> Title:
> qtQR adds BOM to the generated QR code
>
> Status in QR Tools:
> New
>
> Bug description:
> qtQR 2.0~bzr33-2
> Linux Mint 20.3, amd64
>
> I tried to replicate a demaged QR code with qtQR but application
> cannot decode the QR code. I found that qtQR creates QR codes with BOM
> (UTF-8, Byte Order Mark).
>
> I created QR of type "text" with value "TEST" but when I use BinaryEye
> mobile app, I see that QR code is generated with BOM - "{BOM}TEXT",
> where BOM is \xEF\xBB\xBF. Such information should not be in QR code,
> there is no need to use BOM for ASCII text. I cannot find any option
> to disable such behavior in qtQR.
>
> It is interesting then when I try to decode QR code with "zbarimg",
> there is no information about BOM in the data... "zbarimg" is not
> reliable application to troubleshoot this issue!
>
> $ zbarimg --xml qtQR-TEST-BOM-1.png
> <barcodes xmlns='http://
> <source href='qtQR-
> <index num='0'>
> <symbol type='QR-Code' quality='1'
> orientation=
> </index>
> </source>
> </barcodes>
> scanned 1 barcode symbols from 1 images in 0.04 seconds
>
> $ zbarimg --version
> 0.23
>
> Similar QR code can be generated with "rencode" and that one has no
> BOM (I like it!):
>
> $ qrencode -l L -s 5 -m 10 -o rencode-
>
> $ zbarimg --xml rencode-
> <barcodes xmlns='http://
> <source href='rencode-
> <index num='0'>
> <symbol type='QR-Code' quality='1'
> orientation=
> </index>
> </source>
> </barcodes>
> scanned 1 barcode symbols from 1 images in 0.01 seconds
>
> I will attach some images.
>
> BTW, BinaryEye can be downloaded from
> https:/
>
> To manage notifications about this bug go to:
> https:/
>
>
-- /algozino. com.ar/ <http:// algozino. com.ar/>
Ramiro Algozino
Telecommunications Engineer
https:/