# decodeUtf8

`import { decodeUtf8 } from "destack:string";`

Decode UTF-8 bytes as text.

```ds title="decodeUtf8"
export function decodeUtf8(bytes: &'a readonly [uint8]): Result<string, DecodeError>
```

[language/library/src/string/utf8.ds:27:29](https://github.com/destack-sh/destack/blob/main/language/library/src/string/utf8.ds#L27-L29)
