textEncoding

Specifies the encoding of text content in the document.

Syntax

Reference_Syntax.textEncoding = "UTF-8 | UTF-16 | Shift-JIS | Big-Five |ISO-8859-1 | ISO-8859-2 | ISO-8859-7 | KSC-5601 | GB-2312 | UCS-2 | fontSpecific"

Values

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

Note: Use values ISO-8859-1 , ISO-8859-2 , and ISO-8859-7 only when you know that Adobe Acrobat will not be used to submit form data.
Type
String

Values
  • none (default)

  • ISO-8859-1

  • ISO-8859-2

  • ISO-8859-7

  • Shift-JIS

  • KSC-5601

  • Big-Five

  • GB-2312

  • UTF-8

  • UTF-16

  • UCS-2

  • fontSpecific

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

  • ISO-8859-1

  • ISO-8859-2

  • ISO-8859-7

  • Shift-JIS

  • KSC-5601

  • Big-Five

  • GB-2312

  • UTF-8

  • UTF-16

  • UCS-2

  • fontSpecific

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

  • ISO-8859-2

  • ISO-8859-7

  • Shift-JIS

  • KSC-5601

  • Big-Five

  • GB-2312

  • UTF-8

  • UTF-16

  • UCS-2

  • fontSpecific

The characters are encoded using ISO-8859-2.

  • ISO-8859-7

  • Shift-JIS

  • KSC-5601

  • Big-Five

  • GB-2312

  • UTF-8

  • UTF-16

  • UCS-2

  • fontSpecific

The characters are encoded using ISO-8859-7.

  • Shift-JIS

  • KSC-5601

  • Big-Five

  • GB-2312

  • UTF-8

  • UTF-16

  • UCS-2

  • fontSpecific

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

  • KSC-5601

  • Big-Five

  • GB-2312

  • UTF-8

  • UTF-16

  • UCS-2

  • fontSpecific

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

  • Big-Five

  • GB-2312

  • UTF-8

  • UTF-16

  • UCS-2

  • fontSpecific

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

  • UTF-8

  • UTF-16

  • UCS-2

  • fontSpecific

The characters are encoded using Simplified Chinese.

  • UTF-8

  • UTF-16

  • UCS-2

  • fontSpecific

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

  • UTF-16

  • UCS-2

  • fontSpecific

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

  • UCS-2

  • fontSpecific

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

  • fontSpecific

The characters are encoded in a font-specific way. Each character is represented by one 8-bit byte.

Applies to

Version

XFA 2.1

Examples

JavaScript

Button1.event.submit.textEncoding = "UCS-2";

FormCalc

Button1.event.submit.textEncoding = "UCS-2"

// Ethnio survey code removed