Open dkarlovi opened 2 months ago
If you're using the "Extract from text file" node to convert binary data into JSON, it will corrupt the data if it's not UTF8.
S0FSTE9WScSGICA=
Karlović
If I use this in the following code node without it, it works:
const body = iconv.decode(await this.helpers.getBinaryDataBuffer($itemIndex, 'file_0'), 'cp1250');
If I use the Extract node, it gets corrupted.
Non-UTF8 encodings also work
Docker image n8nio/n8n
1.59.3
v20.17.0
PostgreSQL
main (default)
Hey @dkarlovi,
We have created an internal ticket to look into this which we will be tracking as "GHC-251"
Bug Description
If you're using the "Extract from text file" node to convert binary data into JSON, it will corrupt the data if it's not UTF8.
To Reproduce
S0FSTE9WScSGICA=
after having base64-decoded it into it, this containsKarlović
encoded using Windows-1250If I use this in the following code node without it, it works:
If I use the Extract node, it gets corrupted.
Expected behavior
Non-UTF8 encodings also work
Operating System
Docker image n8nio/n8n
n8n Version
1.59.3
Node.js Version
v20.17.0
Database
PostgreSQL
Execution mode
main (default)