Join should use UTF-8 Encoding

This commit is contained in:
Lewis Diamond 2019-12-02 16:18:24 -05:00
parent 57645c68da
commit fddaa03300

View File

@ -4,7 +4,7 @@ import { WithEncoding } from "./baseDefinitions";
export function join( export function join(
separator: string, separator: string,
options?: WithEncoding & TransformOptions, options: WithEncoding & TransformOptions = { encoding: "utf8" },
): Transform { ): Transform {
let isFirstChunk = true; let isFirstChunk = true;
const decoder = new StringDecoder(options.encoding); const decoder = new StringDecoder(options.encoding);