TBarCode Library 11  TBarCode Library 11

Enables QR-Code "Compact Kanji" or "Compact Chinese" option.

Enables the compaction of Kanji or Simplified Chinese characters into 13-bit values. The characters must be passed on as Unicode (wide string functions) in combination with code page set to Shift JIS or Simplified Chinese. If you use encoding mode Low Byte, the Kanji-characters must be supplied in Shift JIS X 0208 and the Chinese characters in GB2312 (Simplified Chinese) multi byte character set. Compaction of Kanji characters is done according to ISO/IEC 18004 (and AIM ITS/97-001); Compaction of Chinese characters is done according to GB/T 18284-2000.

See also:
BCGet_QR_KanjiChineseCompaction (), BCSetTextW(), BCSetCodePage()
Note:
Do not use this option for pure binary data or ASCII characters. Take care with QR-Code 2005, which has a different default encoding.
Parameters:
[in]pBarCodePointer to bar-code structure.
[in]eCompactionCompact Kanji or Chinese option.
  • eQRMBCompactionDefault: compact Kanji characters if Codepage = Japanese Shift JIS
  • eQRMBCompactionNone: do not compact Multi Byte character sets
  • eQRMBCompactionKanji: Kanji characters (Shift JIS X 0208) should be compacted
  • eQRMBCompactionChinese: Chinese characters (GB2312) should be compacted
Return values:
ERRCODEErrOk (0) in case of success. Non-zero if error occurred.