Page 1 of 1

Text from Linux to Windows.

Posted: Wed Jun 19, 2013 6:53 am
by JMD
My server is running on ubuntu and when i transfer html, config files etc. the text format gets broken. I must open the files with notepad++ in order for me to be able to read the text on those files again, is there any way to fix it?

Re: Text from Linux to Windows.

Posted: Wed Jun 19, 2013 8:23 am
by jurchiks
Unix EOL is "\n", Windows is "\r\n". Don't open files with Notepad, it doesn't recognise Unix line endings. Advanced editors like Notepad++ and all the IDEs have no problems with that.
It's possible that whatever software you're using to transfer the files changes the EOL characters in them.