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

2Dbarcode PD417 UNICODE characters

Hello!

I am using Delphi 10.3.3, RB 19.0.4.
It seems that 2Dbarcode does not generate some UNICODE characters like "čćžšđ" correctly.

Example data:
HRVHUB30
HRK
000000000012355
ŽELJKO SENEKOVIĆ
IVANEČKA ULICA 125
42000 VARAŽDIN
2DBK d.d.
ALKARSKI PROLAZ 13B
21230 SINJ
HR1210010051863000160
HR01
7269-68949637676-00019
COST
Troškovi za 1. mjesec


Generated 2D barcode is read using https://online-barcode-reader.inliteresearch.com/ or mobile app "BarCode Reader" and result is:

0000 48 52 56 48 55 42 33 30 0a 48 52 4b 0a 30 30 30 | HRVHUB30~HRK~000 |
0010 30 30 30 30 30 30 30 31 32 33 35 35 0a 7d 45 4c | 000000012355~}EL |
0020 4a 4b 4f 20 53 45 4e 45 4b 4f 56 49 06 0a 49 56 | JKO SENEKOVI~~IV |
0030 41 4e 45 0c 4b 41 20 55 4c 49 43 41 20 31 32 35 | ANE~KA ULICA 125 |
0040 0a 34 32 30 30 30 20 56 41 52 41 7d 44 49 4e 0a | ~42000 VARA}DIN~ |
0050 32 44 42 4b 20 64 2e 64 2e 0a 41 4c 4b 41 52 53 | 2DBK d.d.~ALKARS |
0060 4b 49 20 50 52 4f 4c 41 5a 20 31 33 42 0a 32 31 | KI PROLAZ 13B~21 |
0070 32 33 30 20 53 49 4e 4a 0a 48 52 31 32 31 30 30 | 230 SINJ~HR12100 |
0080 31 30 30 35 31 38 36 33 30 30 30 31 36 30 0a 48 | 10051863000160~H |
0090 52 30 31 0a 37 32 36 39 2d 36 38 39 34 39 36 33 | R01~7269-6894963 |
00a0 37 36 37 36 2d 30 30 30 31 39 0a 43 4f 53 54 0a | 7676-00019~COST~ |
00b0 54 72 6f 61 6b 6f 76 69 20 7a 61 20 31 2e 20 6d | Troakovi za 1. m |
00c0 6a 65 73 65 63 0a | jesec~ |

ŽĆš characters are generated with just one byte instead of two. I suppose that there should be a way to switch to byte mode to code multibyte characters.

Please tell me how can I generate correct 2D bar code?

Thank You!
Periša Zakarija

Comments

  • Hi Periša,

    Multi-byte character sets (Unicode) are not currently supported by the PDF417 component in ReportBuilder. PDF417 was never originally designed to support character values above 255 (FF). Some modern readers now allow for UTF-8 encoded PDF417 to work around this limitation.

    The PDF417 component in ReportBuilder was adapted from the open source project TurboPower Systools. Over time we have enhanced it to support our customers' needs. I will add support for UTF-8 encoding to our list of possible enhancements for a later release of ReportBuilder.


    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • Thank you Nico,

    I hope that this enhancement will be made.

    Best regard,
    Periša Zakarija
Sign In or Register to comment.