specifies the length of the character unit for the Unicode data.
The
UNICODELEN function specifies the length of the character unit for the UNICODE
data.
This example uses the Japanese Shift_JIS session encoding, which is
supported under the UNIX operating system.
Statements |
Results |
len1=unicodelen("abc
");
|
len1=4 |
len2=unicodelen("\u0041\u0042\u0043\u5927",'esc') |
len2=4 |
len3=unicodelen("大' ,'ncr'); |
len3=1 |
len4=unicodelen("<u0061><u0062>",'paren'); |
len4=2 |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.