charEncoding

Specifies the character encoding of the value that is encoded into a barcode.

The value of the barcode field is serialized into a sequence of bytes according to the specified character encoding. Then it is compressed if the dataPrep property requires it and encrypted if the encrypt object is present. Finally, it is encoded according to the symbology.

Note: The value of this property is case-insensitive and must match one of the following values.

Syntax

Reference_Syntax.charEncoding = "UTF-8 | none | ISO-8859-1 | ISO-8859-2 | SO-8859-7 | SHift-JIS | KSC-5601 | Big-Five | GB-2312 | UTF-16 | UCS-2 | fontSpecific"

Values

Type

Values

String

  • UTF-8 (default)

The characters are encoded using Unicode code points as defined by Unicode, and UTF-8 serialization as defined by ISO/IEC 10646.

  • none

No special encoding is specified. The characters are encoded using the ambient encoding for the operating system.

  • ISO-8859-1

The characters are encoded using ISO-8859-1, also known as Latin-1.

  • ISO-8859-2

The characters are encoded using ISO-8859-2. I

  • SO-8859-7

The characters are encoded using ISO-8859-7.

  • Shift-JIS

The characters are encoded using JIS X 0208, more commonly known as Shift-JIS.

  • KSC-5601

The characters are encoded using the Code for Information Interchange (Hangul and Hanja).

  • Big-Five

The characters are encoded using Traditional Chinese (Big-Five). There is no official standard for Big-Five and several variants are in use. The Adobe form object model uses the variant implemented by Microsoft® as code.

  • GB-2312

The characters are encoded using Simplified Chinese.

  • UTF-16

The characters are encoded using Unicode code points as defined by Unicode, and UCS-16 serialization as defined by ISO/IEC 10646.

  • UCS-2

The characters are encoded using Unicode code points as defined by Unicode, and UTF-2 serialization as defined by ISO/IEC 10646.

  • fontSpecific

Applies to

Version

XFA 2.4

Examples

JavaScript

Code11BarCode1.resolveNode("ui.#barcode").charEncoding = "UCS-2";

FormCalc

Code11BarCode1.ui.#barcode.charEncoding = "UCS-2"

// Ethnio survey code removed