s2 / src /shared /encoding.ts
xjackkx's picture
Upload 151 files
e81f4e4 verified
Raw History Blame Contribute Delete
192 Bytes
export const TEXT_ENCODER = new TextEncoder();
export const TEXT_DECODER = new TextDecoder();
export const UTF8_FATAL_DECODER = new TextDecoder("utf-8", {
fatal: true,
ignoreBOM: false,
});