# UNICODE

> UNICODE function in StackQL: the Unicode code point of the first character of a string.

Source: https://stackql.io/language-spec/functions/string/unicode

Returns the numeric Unicode code point of the first character of a string.

See also:  
[[` SELECT `]](/language-spec/select) [[` CHAR `]](/language-spec/functions/string/char)

* * * 

## Syntax

```sql
SELECT UNICODE(string) FROM <multipartIdentifier>;
```

## Arguments

__*string*__  
A string.

## Return Value(s)
Returns an integer.  The result is `NULL` for `NULL` or an empty string.

* * *

## Examples

### Code point of the first character

The following query returns the code points of `S` and `é`:

```sql
SELECT UNICODE('StackQL') AS a, UNICODE('é') AS b;
```

```
|----|-----|
| a  |  b  |
|----|-----|
| 83 | 233 |
|----|-----|
```

For more information, see [https://www.sqlite.org/lang_corefunc.html#unicode](https://www.sqlite.org/lang_corefunc.html#unicode)
