FAQ TBarCode DLL / TBarCode Library
How to Encode UTF-8 in a QR-Code
How to Encode UTF-8 in a QR-Code
By default TBarCode V9 (and later) will use the following encoding:
Default Encoding QR-Code JIS (AIM ISS QR Code 1997)- BCSetTextA treats input data as ANSI ASCII (Latin-1). This character set is converted to SHIFT-JIS to be QR-Code compatible. Some Latin-1 characters may be lost in this conversion.
- BCSetTextW treats input data as Unicode. This data is converted to SHIFT-JIS, too (characters not part of SHIFT-JIS may be lost).
- BCSetTextA treats input data as ANSI ASCII (Latin-1). This character set is converted to Latin-1.
- BCSetTextW treats input data as Unicode. This data is converted to Latin-1 (characters not part of Latin-1 may be lost).
If you want to encode data in UTF-8 format, then use BCSetCodePage (pBarCode, eCodePage_UTF8). For non Latin-1 characters use BCSetTextW with Unicode to be sure that all characters can be encoded without loss.
If you want to encode binary data or your own data “as is” (no conversion applies) use: BCSetEncodingMode (pBarCode, eEncMode_LowByte ) with BCSetTextA().