# Function Reference

# AscW

Returns the unicode code of a character.

AscW ( "char" )

## Parameters

char | The character to get the code for. If a string is used, the code for the first character is given.

## Return Value

Returns the unicode code of the specified char.

## Remarks

See the ASCII Character Code table for a complete list of available values.
See "Unicode Support" for a detailed description.

## Related

Asc, Chr, ChrW

## Example

    #include <MsgBoxConstants.au3>

    Local $sNotANSI = Chr(223)
    Local $iCode = AscW($sNotANSI)
    MsgBox($MB_SYSTEMMODAL, "", "Unicode code for " & $sNotANSI & ": U+" & Hex($iCode, 6))