Top
NetCOBOL V11.0 NetCOBOL Studio User's Guide
FUJITSU Software

A.1.12 ENCODE compile option

Specify the encoding of the alphanumeric data item and the national data item.

Item

Description

Encoding of an alphanumeric character item

The default is SJIS.

SJIS - Shift-JIS

The encoding of an alphanumeric character item is specified as SJIS.

UTF-8

The encoding of an alphanumeric character item is specified as UTF8.

Encoding of a national item

The default is SJIS.

SJIS - Shift-JIS

The encoding of a national item is specified as SJIS.

UTF-16

The encoding of a national item is specified as UTF16.

UTF-32

The encoding of a national item is specified as UTF32.

Endian of a national item

When the national item is UTF16 or UTF32, then specify little endian or big endian.

LE - Little Endian

The national item is little endian.

BE - Big Endian

The national item is big endian.

When compilation option ENCODE is specified, then the runtime code will be Unicode. However, when compilation option RCS is specified, then it is given priority.

Point

When compile option ENCODE (UTF8, UTF16) or ENCODE (UTF8, UTF32) is specified explicitly or implicitly, then spaces related to a national item become national spaces (alphabetic character spaces). This handling can be done by specifying the compile option NSP.