In JavaScript this was a cross-browser compatibility issue, so both were used, but there are numerous instances in different languages where I see both printed out together as \r\n. Is this still the generally excepted norm that you should just always use both, or is there ever a time where languages understand both and you end up with a break and a return?
In JavaScript this was a cross-browser compatibility issue, so both were used, but there
Share
The CRLF pair is the expected end-of-line (EOL) marker on most internet protocols.
Here, Postel’s ‘Robustness Principle’ should apply. Be liberal in what you accept, but strict in what you send. So, be prepared to receive just a LF, but if you’re sending data use whatever the relevant standards require.