pinal has given you the correct answer, here's just a little more detail
why use this?
<cfset MyString = Replace(MyString, "#chr(10)##chr(13)#", "", "ALL")>
on a windows-based system when you hit enter two values are sent to the system, ascii characters 10 and 13, as a new line with a carriage return, but on a unix based system only the acii character 10 is sent to the os which is interpreted as a newline with a carriage return
no points just adding some info
Main Topics
Browse All Topics





by: pinaldavePosted on 2005-11-14 at 23:27:16ID: 15293722
I always use
<cfset MyString = Replace(MyString, "#chr(10)##chr(13)#", "", "ALL")>
chr10 stand for new line and chr13 stands for carriage return. We can replace that with empty string.
Regards,
---Pinal