The next table lists the simple character types. Noted here is the encoding, which is a mapping of each display character such as “A” and the related binary value such as 01000001. The code page. is a table of such encodings and is important for globalization.
Type | Meaning of n | Limits | Value or reference type? | Comments |
---|---|---|---|---|
BYTES, BYTES(n) |
BYTES is a reference type, BYTES(n) is a value type. | |||
CHAR(n) |
Number of one-byte characters, with single-byte blanks used as padding, if necessary. |
n <= 32767. | Value. | Not implemented in Eclipse IDE for EGL Developers. Encoding is by the local code page. |
DBCHAR(n) |
Number of two-byte characters, with double-byte blanks used as padding, if necessary. |
n <= 16383. | Value. | Not implemented in Eclipse IDE for EGL Developers. Encoding is by the local code page. |
HEX(n) |
Number of four-bit HEX digits, with binary zeros used as padding, if necessary. |
n <= 65534; the n must be even. | Value. | Not implemented in Eclipse IDE for EGL Developers. The only valid characters are the hexadecimal digits 0-9, a-f, and A-F. |
MBCHAR(n) |
Number of one-byte characters; with single-byte characters used as padding; however, an instance typically includes one- and two-byte characters. |
n <= 32767. | Value. | Not implemented in Eclipse IDE for EGL Developers. Encoding is by the local code page. |
STRING, STRING(n) |
Number of two-byte UNICODE characters. |
n <= 16383; here, n represents a limit on length, making STRING(n) similar to the SQL VARCHAR type. | Reference. | Encoding is UNICODE; specifically, UTF-16. |
UNICODE(n) |
Number of two-byte UNICODE characters, with UNICODE characters used as padding. |
n <= 16383. | Value. | Not implemented in Eclipse IDE for EGL Developers. Encoding is UNICODE; specifically, UTF-16. |
Platform | Issue |
---|---|
JavaScript generation | The reference type STRING is the only supported character type. |