charset encoding

This commit is contained in:
Martin McKeaveney 2022-08-08 13:51:02 +01:00
parent 55d6c08ad3
commit 1ed32f0ce4
1 changed files with 4 additions and 2 deletions

View File

@ -106,8 +106,10 @@ exports.loadHandlebarsFile = path => {
*/ */
exports.apiFileReturn = contents => { exports.apiFileReturn = contents => {
const path = join(budibaseTempDir(), uuid()) const path = join(budibaseTempDir(), uuid())
fs.writeFileSync(path, contents) fs.writeFileSync(path, "\ufeff" + contents)
return fs.createReadStream(path) let readerStream = fs.createReadStream(path)
readerStream.setEncoding("binary")
return readerStream
} }
exports.defineFilter = excludeRows => { exports.defineFilter = excludeRows => {