cflib.org has a function (i think it's in the string lib) called deMoronize() that should do what you're looking for :)
charlie ----- Original Message ----- From: "Jim McAtee" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, August 29, 2003 12:02 PM Subject: Character Scrubbing > We've got significant user-updatable content in which HTML is permitted. We > occasionally see a problem with odd characters when a user does a cut & paste > from something like Word. > > What is a good way to scrub these characters from the content? Ideally, we'll > do this when the content is written to the db field, and may have to go through > much of the data we have and correct this. For the time being, though, since > we've already got a bit of content with these characters and I'd like to scrub > it when it's displayed. I can replace some characters on a case-by-case basis > (Word 'bullets' and right-quotes are most common) but would rather have a more > general means of replacing these. > > Thanks, > Jim > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Get the mailserver that powers this list at http://www.coolfusion.com

