|
Posted by Kimmo Laine on 02/19/07 08:21
"Koster, H" <interinfra.haalweg@localhost.localdomain> wrote in message
news:45d945bc$0$336$e4fe514c@news.xs4all.nl...
> Op Sun, 18 Feb 2007 13:40:36 -0800, schreef ZeldorBlat:
>
>> In any case, your various headers need to be seperated by \r\n not
>> just \n.
>
> another question from me now, it was hard to find a thorough explanation
> of the exact meaning of \n and \r, what do they do exactly?
Fun with ASCII, part 0x65
\r = carriage return = sets the cursor at the beginning of the row
\n = line feed = begins a new line
(By your powers combined, I am Captain Carriage Return And New Line!)
\r\n in a windows system is the character combination that gives you a new
line to write to. This is different in *nix based system, where only \n is
needed, the \r is implied. And just to make it fun, this is also different
in a Mac system, where only \r is needed and \n is implied.
So in total we have three different and fun ways for presenting a new line:
\r\n in Windows
\n in *nix
\r in Mac
This of course is a great way to create confusion and anger.
--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti pδivittyvδ nettisarjis
spam@outolempi.net | rot13(xvzzb@bhgbyrzcv.arg)
Navigation:
[Reply to this message]
|