$UTF8Xw. Format

Processes a character string that is in the encoding of the current SAS session, and then writes the character string in universal transformation format (UTF-8) encoding.
Category: Character
Alignment: left

Syntax

$UTF8Xw.

Syntax Description

w
specifies the width of the output field. Specify enough width to include all of the characters in the variable. The width of the characters are dependent on the code point value of the individual characters.
Default:8
Range:2–32767

Comparisons

This example uses the Japanese Shift_JIS session encoding, which is supported under the UNIX operating environment.
Statements
Results
----+----1
x ='91E5'x; ; /* Japanese 'xxx' in Shift-JIS */
put x $utf8x10.;
x='e5a4a7'x