Namespace: utf8

bp.codec. utf8

Helper functions to move data to / from UTF8 encoding.

Methods

(static) decode(data) → {string}

Decodes the string from UTF8.
Parameters:
Name Type Description
data string The data to decode from UTF8.
Returns:
The decoded data.
Type
string

(static) encode(data) → {string}

Encodes the provided string into UTF8.
Parameters:
Name Type Description
data string The data to encode to UTF8.
Returns:
Encoded data.
Type
string