I generate some files with N8N to import into one of our systems. But before doing so I need to convert the line endings of the binary files to Windows style format (CR+LF) with Notepad++ or something similar. N8N generates UNIX stlye formated files (LF only).
How can I do this inside N8N? I managed to get the encoding of the files fixed to get the in wondows1251 (yes I know our system is pretty outdated in that regard) encoding with n8n-nodes-text-manipulation - npm community package.
Hi @vuchl, I don’t think any of the default n8n nodes let’s you currently specify the line ending unfortunately. Could you perhaps consider writing your file through the echo command in the Execute Command node? This way, the OS would handle the line breaks.
@vuchl
One thing from the author of the text-manipulation node:
Most nodes are open source. So you can also look at the source code if you don’t trust the author :).
My node now also allows special characters to be replaced with special characters. I have programmed the extended mode for this.
Feel free to try it out.