Text from Linux to Windows.

If something doesn't fit in any other forum then post it here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
JMD
Advanced User
Advanced User
Posts: 1440
Joined: Wed Apr 15, 2009 10:07 am

Text from Linux to Windows.

Post 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?
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Text from Linux to Windows.

Post 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.
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.
Post Reply