fix(Spreadsheet File Node): Read file as utf-8 in v1 (#7701)

Github issue / Community forum post (link here to close automatically):
This commit is contained in:
Elias Meire
2023-11-14 11:27:37 +01:00
committed by GitHub
parent 0e00dab9f5
commit 786b4adcce
4 changed files with 111 additions and 0 deletions

View File

@@ -178,6 +178,22 @@ describe('Execute Spreadsheet File Node', () => {
},
},
},
{
description: 'execute utf8.json',
input: {
workflowData: loadWorkflow('workflow.utf8.json', 'utf8.csv'),
},
output: {
nodeData: {
'Parse UTF8 v1': [
[{ json: { A: 1, B: '株式会社', C: 3 } }, { json: { A: 4, B: 5, C: '🐛' } }],
],
'Parse UTF8 v2': [
[{ json: { A: '1', B: '株式会社', C: '3' } }, { json: { A: '4', B: '5', C: '🐛' } }],
],
},
},
},
];
const nodeTypes = Helpers.setup(tests);