HanXinEncodeMode

HanXinEncodeMode enumeration

Han Xin Code encoding mode. It is recommended to use Auto with ASCII / Chinese characters or Unicode for Unicode characters.

Members

Member name Description
AUTO In Auto mode, the CodeText is encoded with maximum data compactness.
Unicode characters are encoded using GB18030 encoding according to HanXin barcode specification.
BINARY In Binary mode, the CodeText is encoded with maximum data compactness.
If a Unicode character is found, an exception is thrown.
ECI In ECI mode, the entire message is re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
Please note that some old (pre 2006) scanners may not support this mode.
UNICODE Unicode mode designs a way to represent any text data reference to UTF8 encoding/charset in Han Xin Code.
URI URI mode indicates the data represented in Han Xin Code is Uniform Resource Identifier (URI)
reference to RFC 3986.
EXTENDED Extended mode allow combinations of internal modes: Auto, Binary, Text, Numeric, URI, Unicode, ECI, Common Chinese Region One,
Common Chinese Region Two, GB18030 Two Byte, GB18030 Four Byte.
Codetext can be built manually with prefixes and doubled backslashes, e.g.: @"\auto:abc\000009:ΑΒΓΔΕ\auto:ab\c" or using the HanXinExtCodetextBuilder.
If the codetext contains an ECI fragment, then only the following modes can be in that codetext after ECI fragment:
Auto, Binary, Text, Numeric, URI, ECI.

See Also