New lines are represented on different platforms by carriage return (CR), line feed (LF), CRLF, or new line (NEL).
Unfortunately, not only are new lines represented by different characters on different platforms, they also have ambiguous behaviour even on the same platform.
This causes a significant problem, especially with the advent of the web, where text on a single machine can arise from many sources.
Unfortunately, these characters are often transcoded directly into the corresponding Unicode codes when a character-set is transcoded; this means that even programs handling pure Unicode have to deal with the problems.
There are two mappings of LF and NEL used by EBCDIC systems.
The first EBCDIC column shows the MVS Open Edition (including CP1047) mapping of these characters, while the second column shows the CDRA mapping.
This difference arises from the use of LF character as 'New Line' in ASCII-based Linux environments and in some data transfer protocols that use the Linux assumptions.
The second column is based on the standardized definitions — both in ASCII and EBCDIC of LF.
NEL is not actually defined in ASCII: it is defined in ISO 6429 as a C1 control.
For more information refer to: