Closed dxcqcv closed 9 months ago
iconv-lite does not print anything anywhere either. Can it be that fs.createReadStream(encodedData)
is used incorrectly? It accepts file path as the first argument.
You're right, my bad, iconv.decode(fileBuffer, 'GBK');
return string not path, thx
The
node.js
print all csv content in terminal when I run following code, I do not know why and how do I to fix it, I do not wannaconsole.log
anything, and my code does not haveconsole.log
command, why does it print file content? help