UNICODELEN Function

specifies the length of the character unit for the Unicode data.
Category: Character

Syntax

UNICODELEN()

Details

The UNICODELEN function specifies the length of the character unit for the UNICODE data.

Example

This example uses the Japanese Shift_JIS session encoding, which is supported under the UNIX operating system.
Statements
Results
len1=unicodelen("abcxxx");
len1=4
len2=unicodelen("\u0041\u0042\u0043\u5927",'esc')
len2=4
len3=unicodelen("大' ,'ncr');
len3=1
len4=unicodelen("<u0061><u0062>",'paren');
len4=2

See Also