UCODE$ function

Purpose

Translate an ANSI string into a Unicode string.

Syntax

a$ = UCODE$(AnsiStrExpression)

Remarks

UCODE$ returns the Unicode, multi-byte equivalent string of the ANSI string contained in AnsiStrExpression.  To convert a Unicode string into ANSI, use the ACODE$ function.

Unicode strings require two bytes to represent a Unicode character, whereas ANSI strings (the native PowerBASIC string format) uses one byte to represent a character.  Therefore, UCODE$ returns a string that has twice the byte count of the ANSI string, yet represents the same number of characters.

See also

ACODE$