Skip to main content

Utf8.decode

Function

Decodes a utf-8 Uint8Array to a utf-16 string

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

decode(data): string

Decodes a utf-8 Uint8Array to a utf-16 string

Parameters

ParameterType
dataUint8Array

Returns

string