# fromUTF8 {#fromutf8}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`fromUTF8(str, encode)`

## Arguments {#arguments}

**str** is a STRING scalar/vector.

**encode** is a string indicating the new encoding name. It must use lowercase.

## Details {#details}

Convert the encoding of strings from UTF-8.

For the Windows version, *encode* can only be "gbk".

## Examples {#examples}

```
fromUTF8("DolphinDB","gbk");
// output: DolphinDB

fromUTF8(["hello","world"],"euc-cn");
// output: ["hello","world"]
```

