Skip to main content
Go to Latest
function utfDecode
Re-export
import { utfDecode } from "https://deno.land/x/simple_utility@v1.3.5/mod.universal.ts";

Convert from UTF-8 binary to string.

Examples

Example 1

const text = "HelloWorld!";
const converted = utfEncode(text);
const restored = utfDecode(converted);

Parameters

data: Uint8Array

Returns

string