Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: bakedjake
DOS and Unix have two differing ways of specifing a "End OF line/New Line".
In DOS a newline is indicated by the control characters for carriage return & newline. In unix a newline control character is all that is needed.
If you were to see the control characters in your text editor the \r is carriage return, and \n is new line.
For html it makes no difference to the servers or browser but with scripts like perl the \r's on a unix system will cause problems. Most unix systems have a util called dos2unix which strips the \r's. All your text editor does in the save unix mode is miss out the \r's.
There will be assci codes for \n \r but I don't know them ;)
Thanks to both of you for the valuable input...!
yeah, i am trying to install a cgi script..but if i have change anything...I'll have to open the file and save the changes in unix format only...thats the reason, i had asked...
I am downloading the textpad now...
Just got the textpad..and installed it...
How do i specify a file to be opened and saved in unix format...using textpad..??
Is it in the encoding tab that i select ANSI, Instead of DOS...??
If that is the way, is that enough or do i have to pick other options in the other tabs also...like in the tabs " file format " and the " file of Type " tab..??