Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

QRCode

edited July 2013 in General
Hi,
how to encode UTF8 to QRCode? Is it some setting or do I have to do some
encoding of data string?
For example: ešcržýáíéúuó

Thanks
Roman Krupicka

Comments

  • edited July 2013
    Hi Roman,

    The Data property for the barcode is a String. Starting with Delphi
    2009, String = UnicodeString (UTF16). You can convert the UTF8 String
    to a UnicodeString in order to get the output you want.

    For older versions of Delphi String = AnsiString.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2013
    Hi Nico,
    you don't understand me:-). I'm using Delphi XE3, so I'm in Unicode.

    I have for example this text in DB in NVARCHAR:
    príliš žlutoucký kun úpel dábelské ódy

    So I create report, set QRCode to it and join to right data field.
    I see text under QRCode and it looks good.
    But problem is if I try to read the QRCode. I try to change coding: Byte,
    AlphaNumeric, Numeric.
    I used several QRCode readers but only one (Google) can read good (QRCode -
    Byte).
    I searched on internet and found out that it is necessarily to add preamble
    for UTF8...
    But how?

    Thanks
    Roman Krupicka

    "Nico Cizik (Digital Metaphors)" píše v diskusním príspevku
  • edited August 2013
    This issue is being handled via email.

    The QRCode component in ReportBuilder currently supports ANSI encoding
    only. We will consider enhancing this to support UTF-8 for a later
    release of ReportBuilder.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2013
    Hi Nico,
    I tried new release 15.01 and I had problem with QRCode:

    1. create new application in Delphi (I have Delphi XE3)
    2. put TppReport on the form and start Report Designer...
    3. put 2DBarCode
    BarCodeType = bcQRCode
    Data = ešcržýáíéúóu
    QRCodeSettings.CharEncoding = bceUTF8
    4. click on Preview

    Now you are wainting and wainting and wainting... Or you can see Out of
    memory...

    Regards
    Roman Krupicka


    "Nico Cizik (Digital Metaphors)" píše v diskusním príspevku
  • edited September 2013
    Hi Roman,

    There is a patch available for this issue. Send a small email to
    support@digital-metaphors.com to receive the patch.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.