All right... as I suspected the characters got replaced in the email... so I
put it in a WORD DOCUMENT (ironic).

Go to: http://www.austin-williams.com/word_character_parsing.doc and
download that file. There are a couple of strings that will parse most WORD
docs successfully enough. Just copy/past the code in to your CF edtor. 

Hope that helps.


Robert B. Harrison
Director of Interactive services
Austin & Williams
125 Kennedy Drive, Suite 100 Hauppauge NY 11788
T : 631.231.6600 Ext. 119 
F : 631.434.7022
www.austin-williams.com

Great advertising can't be either/or... It must be &.

-----Original Message-----
From: Robert Harrison [mailto:rob...@austin-williams.com] 
Sent: Monday, December 22, 2008 3:12 PM
To: cf-talk
Subject: RE: Rich Text Editor - what really handles cut'n paste from Word?

Word is always an issue, but if you're using a form text field, here's a
couple of CF Replace functions you can run strings through deal with Word
characters. 

I've used this for awhile and it seems to deal very reliably with the most
predictable crap that comes from word. This email may mess this up... if it
does I'll post a file so you can download the strings.



Putting data that has been cut/paste from word into a DB, run the following
on the text field to prepare it for HTML.

        '#ReplaceList(trim(form.txt1),
"',.,",",T,R,C,#chr(13)#,<br>,","'',...,"","",&trade;,&reg;,&copy;,<br
/>,")#'


Pulling data from DB, run the following on output to be displayed in a text
field:

        #ReplaceList(trim(getrecord.txt1),"&trade;,&reg;,&copy;,<br
/>","T,R,C,#chr(13)#")#





Robert B. Harrison
Director of Interactive services
Austin & Williams
125 Kennedy Drive, Suite 100 Hauppauge NY 11788
T : 631.231.6600 Ext. 119 
F : 631.434.7022
www.austin-williams.com

Great advertising can't be either/or... It must be &.






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317085
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to