charset encoding
This commit is contained in:
parent
55d6c08ad3
commit
1ed32f0ce4
|
@ -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 => {
|
||||||
|
|
Loading…
Reference in New Issue