I am doing an insert on a variable called report_body where I do a

<cfset newReportBody = replacenocase(report_body, chr(10), "", "all") >
<cfset newReportBody = replacenocase(newReportBody, chr(13), "<br>", "all")>
<cfquery ds="dsname" name="name">
     do insert
</cfquery>


Then when the page reloads I fill in the form fields with the values 
replaced back

<cfset newReportBody = replacenocase(report_body, "<br>", chr(13), all)>
<textarea attributes...>#newReportBody#</textarea>

But it doesn't put in the line feeds for Unix/Netscape.
Can anyone tell me what I should be replacing for line feeds in unix????
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to