Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/denops_std/buffer/fileencoding.ts>tryDecode

📚 Standard module for denops.vim
Go to Latest
function tryDecode
import { tryDecode } from "https://deno.land/x/denops_std@v3.10.0/buffer/fileencoding.ts";

Try to decode with fileencodings specified.

Parameters

content: Uint8Array
fileencodings: string[]

Returns

[string, string]