Previous Page | Next Page

Functions for NLS

UNICODE Function



converts Unicode characters to the current SAS session encoding.
Category: Character

Syntax
Arguments
Details
Examples

Syntax

STR=UNICODE(<instr>(,<Unicode type>))


Arguments

str

Data string that has been converted to the current SAS session encoding.

instr

input data string.

Unicode type

Unicode character formats

ESC

Unicode Escape (for example, \u0042 ). ESC is the default format.

NCR

Numeric Character Representation (for example, &#22823 or &#177 ; )

PAREN

Unicode Parenthesis Escape (for example, <u0061>)

UCS2

UCS2 encoding with native endian.

UCS2B

UCS2 encoding with big endian.

UCS2L

UCS2 encoding with little endian.

UCS4

UCS4 encoding with native endian.

UCS4B

UCS4 encoding with big endian.

UCS4L

UCS4 encoding with little endian.

UTF16

UTF16 encoding with big endian.

UTF16B

UTF16 encoding with big endian.

UTF16L

UTF16 encoding with little endian.

UTF8

UTF8 encoding.


Details

This function reads Unicode characters and converts them to the current SAS session encoding.


Examples

The following example demonstrates the functionality of the UNICODE function:

[untitled graphic]

Previous Page | Next Page | Top of Page