Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

strFromU8

Converts a Uint8Array to a string

function strFromU8(dat: Uint8Array, latin1?: boolean): string;
§
strFromU8(dat: Uint8Array, latin1?: boolean): string
[src]

§Parameters

§
dat: Uint8Array
[src]

The data to decode to string

§
latin1?: boolean optional
[src]

Whether or not to interpret the data as Latin-1. This should not need to be true unless encoding to binary string.

§Return Type

§
string
[src]

The original UTF-8/Latin-1 string