@kayahr/text-encoding
Version:
Text encoder and decoder
20 lines (17 loc) • 410 B
text/typescript
/*
* Copyright (C) 2021 Klaus Reimer <k@ailis.de>
* See LICENSE.md for licensing information.
*/
import { UTF8Decoder } from "../decoders/UTF8Decoder.js";
import { UTF8Encoder } from "../encoders/UTF8Encoder.js";
import { registerEncoding } from "../Encoding.js";
registerEncoding(
"utf-8",
[
"unicode-1-1-utf-8",
"utf-8",
"utf8"
],
UTF8Decoder,
UTF8Encoder
);