feat(Extract from File Node): Add option to set encoding for CSV files (#9392)

This commit is contained in:
Jon
2024-05-16 13:38:40 +01:00
committed by GitHub
parent b5c7c061b7
commit f13dbc9cc3
3 changed files with 24 additions and 1 deletions

View File

@@ -92,6 +92,7 @@ export async function execute(
const parser = createCSVParser({
delimiter: options.delimiter as string,
fromLine: options.fromLine as number,
encoding: options.encoding as BufferEncoding,
bom: options.enableBOM as boolean,
to: maxRowCount > -1 ? maxRowCount : undefined,
columns: options.headerRow !== false,