Featured Posts

ITE in AIE: IT Companies and Engineers in AI Era

IT Companies Change or die: Apps? AI is doing it all R&D ? Companies must have R&D department to do what AI is not doing yet. Softwa...

25 April, 2025

The Newline Character in Different Systems and Its History

CRLF is \r\n or 0D0A

In the old days it was that
  • Unix utilized LF or (\n, 0A)
  • Dos utilized CRLF or (\r\n, 0A0A)
Later on to GUI era
  • Linux is till now still using LF or (\n, 0A)
  • Mac started using CR but now is using LF the same as Linux
  • Windows is the DOS format with both CRLF
There's another guy most people don't notice, the browser
  • Browser show HTML without concerning about newline
  • But there's a case in attribute:
    the escape for newline is &#13 (CR) instead of LF.

No comments:

Post a Comment