Hmmm... I was using chr(10) chr(13) at first, but that was giving me two funny squares in Notepad. Someone here suggested that Notepad has trouble with that character sequence and only requires the carriage return. If I take them both out I get no funny characters, but no line breaks either :) It only seems to happen in Notepad, which is what most of the users will probably be using. Argh...
K. "Andre Turrettini" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Kay, You may be creating a false control charachter. > On a pc, return breaks are "#CHR(10)##CHR(13)#", not just #CHR(13)#. > DRE > > -----Original Message----- > From: Kay Smoljak [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, December 19, 2001 11:47 PM > To: CF-Talk > Subject: Text documents - funny characters > > > Hi all, > > I have text passages that were entered through a web-based interface > using cf_htmlarea_lite. This tag uses the MS dhtml edit thingy, so it > formats everything with copious amounts of pointless markup. > > I am pulling this info from the database, and stripping the html tags > out to send it an email as a text attachment. To get rid of the html, > I am using: > > <cfset body = ReReplaceNoCase(myQuery.body,"<[^>]*>","","ALL")> > > For some reason there tends to be non-breaking spaces where there > should > be line breaks, so I then do: > > <cfset body = ReplaceNoCase(body," ","#chr(13)#","ALL")> > > If I open the resulting file in Notepad, I get strange square > characters > between some of the words. If I paste the text from Notepad into > Studio, > resave it, and open again in Notepad, the square characters are not > there. > > What's the story? Any idea what could be causing this? More to the > point, any idea how to fix it? > > Regards, > Kay. > > > > ______________________________________________________________________ Get Your Own Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb 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

