| Functions for NLS |
| Category: | Character |
| Syntax | |
| Arguments | |
| Details | |
| Examples |
Syntax |
| STR=UNICODE(<instr>(,<Unicode type>)) |
Data string that has been converted to the current SAS session encoding.
input data string.
Unicode character formats
| ESC |
Unicode Escape (for example, \u0042 ). ESC is the default format. |
| NCR |
Numeric Character Representation (for example, 大 or ± ; ) |
| 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]](images/unicodefunction.gif)
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.