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

@@ -77,6 +77,7 @@ export class SpreadsheetFileV1 implements INodeType {
if (binaryData.id) {
const binaryPath = this.helpers.getBinaryPath(binaryData.id);
xlsxOptions.codepage = 65001; // utf8 codepage
workbook = xlsxReadFile(binaryPath, xlsxOptions);
} else {
const binaryDataBuffer = Buffer.from(binaryData.data, BINARY_ENCODING);