Character Data Type

The character data type can be specified as follows:

CHARACTER
CHARACTER([KIND=]n)
CHARACTER([LEN=]len)
CHARACTER([LEN=]len [, [KIND=]n])
CHARACTER(KIND=n [, LEN=len])
CHARACTER*len[,]

n
Is kind 1.

len
Is a string length (not a kind). For more information, see Declaration Statements for Character Types.

If no kind type parameter is specified, the kind of the constant is default character.

Several Multi-Byte Character Set (MBCS) functions are available to manipulate special non-English characters. These are described in Using National Language Support Routines.

For more information on the character data type, see Character Constants, C Strings, and Character Substrings.