Get some strange character from OCR ']Q2\000026'

Discussions about 2D barcode reading and writing
Post Reply
Posts: 2
Joined: Tue Jan 24, 2017 12:11 pm

Get some strange character from OCR ']Q2\000026'

Post by Rnan » Wed Apr 11, 2018 7:49 am


I have read QR code by GDPicture 12 and get some strange character
at front of TEXT .

This is examble (file in attatch)

Barcode Type: 2D - qr
Barcode Confidence: 100
Barcode Version: 2
Barcode Value: ]Q2\000026SEP00SR-H00008246102-1_1

I have try with another application (app cell phone) the result is
Barcode Value: SEP00SR-H00008246102-1_1

I wonder why the GDPicture library get ']Q2\000026' from this QRCode?

Thank you for your support

Posts: 36
Joined: Mon Jul 11, 2016 9:35 am

Re: Get some strange character from OCR ']Q2\000026'

Post by Costinel » Fri Jan 11, 2019 9:55 am


The "]Q2" header at the beginning of the decoded information signals that the barcode's bytes are encoded using different encodings. The encodings are identified by a six-digit number representing the ECI (Extended Channel Interpretation) in effect. More "\nnnnnn" ECIs sequences could be present in the decoded information.

In your case the 26 ECI is used to signal that the information is stored using UTF-8 encoding. Partial correspondence between ECI values and their corresponding character encoding could be found, for example, here: ... 10004.html

Best regards,
Costinel Mitrea

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest