OS Windows: fs.writefile (ascii) content from <textarea> without x0D (CR)

1 view
Skip to first unread message

Udo Weik

unread,
Feb 10, 2014, 6:19:39 PM2/10/14
to node-...@googlegroups.com
Hello again,

OS Windows 7, I'm trying to save the content of an HTML <textarea>
via fs.writefile (encoding ascii) to a file. Only the x0A (LF) is
saved, not the DOS/Windows x0D (CR) x0A (LF) pair. Any hints?


Many thanks and greetings
Udo

---
Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus Schutz ist aktiv.
http://www.avast.com

VoidVolker

unread,
Feb 11, 2014, 9:31:06 AM2/11/14
to node-...@googlegroups.com
Use "\r\n". If in text only  0x0A - just replace them to 0x0D0A.
Reply all
Reply to author
Forward
0 new messages