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

@@ -17,7 +17,9 @@ export const description: INodeProperties[] = fromFile.description
if (newProperty.name === 'options') {
newProperty.options = (newProperty.options as INodeProperties[]).map((option) => {
let newOption = option;
if (['delimiter', 'fromLine', 'maxRowCount', 'enableBOM'].includes(option.name)) {
if (
['delimiter', 'encoding', 'fromLine', 'maxRowCount', 'enableBOM'].includes(option.name)
) {
newOption = { ...option, displayOptions: { show: { '/operation': ['csv'] } } };
}
if (option.name === 'sheetName') {