Skip to content

decodeUtf8

Decode a UTF-8 encoded string.

Usage

js
import { decodeUtf8 } from 'js-cool'

Signature

typescript
function decodeUtf8(utftext: string): string

Parameters

ParameterTypeDescription
utftextstringThe UTF-8 encoded string

Returns

string - The decoded string.

Examples

js
decodeUtf8(encodedString) // '你好'

Released under the MIT License.