char (13) is a Carriage Return (CR)
char (10) is a Line Feed (LF)
Windows OS's use both CR + LF to indicate a new line
Unix OS's use just a LF ( or is it just a CR? its one or the other)
Depending on where the data comes from will depend on what chars are used to represent the new line.
If the data came from some other source such as a word processor, the string could be in a very different format such as RTF, or a word Document format.
If the data came from a web page then the line feed would be HTML, and could be either a </p> or a <br> or other line terminator sequence.
Co Author "Professional SQL Server 2005 Administration"
|