Text from Linux to Windows.
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Advanced User
- Posts: 1440
- Joined: Wed Apr 15, 2009 10:07 am
Text from Linux to Windows.
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?
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Text from Linux to Windows.
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.
It's possible that whatever software you're using to transfer the files changes the EOL characters in them.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.