Unable to read QRCode Text (in Unicode)

Discussions about 2D barcode reading and writing
Post Reply
Posts: 1
Joined: Wed Jul 20, 2016 10:59 am

Unable to read QRCode Text (in Unicode)

Post by johnson87 » Wed Jul 20, 2016 11:03 am

Dear Support,

We are using the GDPicture v11 Ultimate.

We now have a need to read barcodes 128 and QRCode that includes Thai wording. The text input is in Unicode, and we can view it in UTF-8 format using other readers.

However when we use GDPictures to read the barcode, it turns out to be just some random numbers. We then tried to convert to the text to other unicode in hopes its jus the viewer's formatting, but it didnt help.

What could be the issue and how can we solve this?
ihr_qr_code_ohne_logo.png (7.03 KiB) Viewed 1653 times

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

Re: Unable to read QRCode Text (in Unicode)

Post by Costinel » Wed Jul 20, 2016 12:11 pm


I have reproduced the same behavior. The image was sent to the development team to check the problem.

In the meantime, you may use a work-around:

Code: Select all

for (int i = 1; i <= Globals.gdPictureImaging.BarcodeQRReaderGetBarcodeCount(); i++)
 byte[] xbUtf8Bytes = Globals.gdPictureImaging.BarcodeQRReaderGetBarcodeValueRAW(i);
 String utf8String = System.Text.Encoding.UTF8.GetString(xbUtf8Bytes);
For your image, utf8String will hold the proper value.


Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests