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.
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
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.
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
Comments
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.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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
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.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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
There is a patch available for this issue. Send a small email to
support@digital-metaphors.com to receive the patch.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com