View Single Post
Old 19-08-2005, 21:07   #4
philip.j.fry
Inactive
 
philip.j.fry's Avatar
 
Join Date: Jul 2003
Posts: 1,395
philip.j.fry has reached the bronze age
philip.j.fry has reached the bronze agephilip.j.fry has reached the bronze agephilip.j.fry has reached the bronze agephilip.j.fry has reached the bronze age
Re: A little SQL help (possibly)

For future reference there are special characters you need for newlines, these differ between windows, macs and *nixes.

There are two escape characters that you need to know, \n is the line feed (LF) character and \r is the carriage return (CR) character.

*nixes use just the LF character for a newline: e.g "This\nIs\nMy\nSentence"

Windows uses the CR followed by the LF character: e.g. "This\r\nIs\r\nMy\r\nSentence"

Macs use just the CR. e.g. "This\rIs\rMy\rSentence"

These are normal characters and will store fine in a database. Most modern programming languages have a constant that represents the newline character for the system you are using.
philip.j.fry is offline   Reply With Quote